|
[ ghc-Bugs-1247773 ] when typing expression fails, don't try to Show it: msg#00144lang.haskell.glasgow.bugs
Bugs item #1247773, was opened at 2005-07-29 19:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1247773&group_id=8032 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GHCi Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andrew Pimlott (pimlott) Assigned to: Nobody/Anonymous (nobody) Summary: when typing expression fails, don't try to Show it Initial Comment: Enter a ghci session, and run "print id": Prelude> print id Top level: No instance for (Show (IO ())) arising from use of `print' at Top level Probable fix: add an instance declaration for (Show (IO ())) In a 'do' expression: print it <interactive>:1:0: No instance for (Show (a -> a)) arising from use of `print' at <interactive>:1:0-4 Probable fix: add an instance declaration for (Show (a -> a)) In the definition of `it': it = print id It would be nice to make the first error go away. It looks as if, when typing "print id" fails, ghci nonetheless goes ahead and tries to type "let it = print id; print it", or something. This just creates useless noise. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1247773&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: getDirectoryContents fails in GHC 6.5 snapshots, works in GHC 6.4.1 snapshots, Brian Smith |
|---|---|
| Next by Date: | [ ghc-Bugs-1248208 ] Result type signatures and lexically scoped type variables, SourceForge.net |
| Previous by Thread: | [ ghc-Bugs-1246483 ] Template Haskell panic with class names, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-1248208 ] Result type signatures and lexically scoped type variables, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |