Francesco Ariis
unread,Nov 24, 2015, 2:03:35 PM11/24/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jeon-Young Kang, The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell, Haskel...@haskell.org
Hello Jeon-Young, I attach a version that compiles. Keep in mind that
compare (Person x y) (Person q w) -- this is legal
compare Person x y Person q w -- "space" takes precedence over everything,
-- so this function has 6 arguments
-- instead of the expected 2!
λ> Main.compare (Person "cdsac" 1) (Person "cdscasd" 20)
Younger