simpler append function
This commit is contained in:
@ -3,6 +3,10 @@ import GoodList
|
||||
|
||||
abc :: GoodList Char
|
||||
abc = cons 'a' $ cons 'b' $ cons 'c' Empty
|
||||
def :: GoodList Char
|
||||
def = cons 'd' $ cons 'e' $ cons 'f' Empty
|
||||
|
||||
main :: IO ()
|
||||
main = print abc
|
||||
main = print abc >>
|
||||
print def >>
|
||||
print (abc `append` def)
|
||||
|
Reference in New Issue
Block a user