Skip to content
Snippets Groups Projects
Commit cc35df01 authored by sof's avatar sof
Browse files

[project @ 1999-09-16 18:37:50 by sof]

Extended to show why changing the defn of ReadS (and read) is a good idea
parent 811d86aa
No related merge requests found
......@@ -19,4 +19,6 @@ data T = T1 | T :++ T deriving (Eq,Show, Read)
t :: T
t = read "T1"
main = print t
main = do
print ((fst (head (reads "T1"))) :: T)
print t
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment