[Haskell-cafe] Printing the empty list.

Brandon Allbery allbery.b at gmail.com
Fri Jul 1 01:04:37 CEST 2011


On Thu, Jun 30, 2011 at 18:58, Joshua Ball <joshbball at gmail.com> wrote:
> GHCi seems to be clever about some things:

GHCi uses extended defaulting rules unless told otherwise, so in the
absence of anything else it uses () as the type.  You can enable this
in GHC as well, with -XExtendedDefaultRules.  See
http://www.haskell.org/ghc/docs/latest/html/users_guide/interactive-evaluation.html#extended-default-rules

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms



More information about the Haskell-Cafe mailing list