cvs commit: hugs98/src preds.c type.c

3 Jul
2003
3 Jul
'03
1:30 p.m.
ross 2003/07/03 10:30:47 PDT Modified files: src preds.c type.c Log: Extend defaulting of types of expressions typed at the prompt: instead of requiring a numeric constraining, also accept Show, Eq or Ord. This matches the recent change to GHCi, fixing the beginner trap Ralf Hinze complained of: Prelude> [] ERROR - Cannot find "show" function for: *** Expression : [] *** Of type : [a] and also (like GHCi) allows [] == [] and [] < [], but only at the prompt. Revision Changes Path 1.32 +17 -13 hugs98/src/preds.c 1.70 +10 -10 hugs98/src/type.c
7992
Age (days ago)
7992
Last active (days ago)
0 comments
1 participants
participants (1)
-
ross@glass.cse.ogi.edu