renamed and fixed const in prelude
This commit is contained in:
parent
b27988b4d8
commit
1723796006
1 changed files with 4 additions and 3 deletions
|
|
@ -170,11 +170,12 @@ prelude :: String
|
|||
prelude =
|
||||
unlines
|
||||
[ "\n"
|
||||
, "const : a -> b -> a"
|
||||
, "const x y = x"
|
||||
, "customHelperFunctionCuzPoorImplementation : Bool -> Int -> Bool"
|
||||
, "customHelperFunctionCuzPoorImplementation x y = x"
|
||||
, "data Bool () where"
|
||||
, " False : Bool ()"
|
||||
, " True : Bool ()"
|
||||
, "lt : Int -> Int -> Bool ()"
|
||||
, "lt x y = const True (x + y)"
|
||||
, "lt x y = customHelperFunctionCuzPoorImplementation True (x + y)"
|
||||
, "\n"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue