Rename `02-lab.hs` to `lab.hs` Rename `02-polymorphic_functions.hs` to `polymorphic_functions.hs` Add `Homework3.hs` Add `Types.hs`
21 lines
505 B
Haskell
21 lines
505 B
Haskell
-- setting the "warn-incomplete-patterns" flag asks GHC to warn you
|
|
-- about possible missing cases in pattern-matching definitions
|
|
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
|
|
|
|
-- see https://wiki.haskell.org/Safe_Haskell
|
|
{-# LANGUAGE Safe #-}
|
|
|
|
|
|
module Homework3 (gasUsage , luhnDouble , luhn) where
|
|
|
|
import Types
|
|
|
|
gasUsage :: (Fractional a, Ord a) => a -> Classification
|
|
gasUsage = undefined
|
|
|
|
luhnDouble :: Int -> Int
|
|
luhnDouble = undefined
|
|
|
|
luhn :: Int -> Int -> Int -> Int -> Bool
|
|
luhn = undefined
|
|
|