forked from noelmarkham/learn-you-a-haskell-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7-modules.hs
More file actions
16 lines (13 loc) · 701 Bytes
/
7-modules.hs
File metadata and controls
16 lines (13 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Fill in the DistanceConversions module first, and import it here
-- create a higher-order function for converting an area between two dimensions
-- this will take the function for converting a distance, and an area to convert
-- using the functions defined in the DistanceConversions module
-- Example areaConv inchesToCentimetres 9 = 58.0644
areaConv :: (Float -> Float) -> Float -> Float
areaConv linearConversion area = undefined
-- define a function for converting square inches into square centimetres
sqInToSqCm :: Float -> Float
sqInToSqCm = undefined
-- define a function for converting square chains (22 yards) to square metres
sqChainsToSqM :: Float -> Float
sqChainsToSqM = undefined