Hi,

Am Samstag, den 03.12.2011, 16:18 +1100 schrieb Erik de Castro Lopo:
> I'm working on a literate haskell document (actually TeX, but the
> example below is just test) and I'm using ByteStrings in the code.
> I know I can do:
> 
>     ghci -XOverloadedStrings file.lhs
> 
> or, after ghci is running I can do:
> 
>     Main> :set -XOverloadedStrings
> 
> but I'd like to embed a directive in the file so that when loaded
> in GHCi, I will automatically get OverloadedStrings. This is mainly
> so that it JustWorks(tm) when I pass the file on to someone else.
> 
> Is there a way to do this?
> 
> There is a short example file below. I'm using ghc-7.0.4 from Debian
> testing.

it does not seem to be related to literate haskell, if I copy the code
from your file into a .hs without the "> ", ghci still does not activate
the OverloadedStrings extension when loading the file.

I’d consider this a bug until the developers explain why this should or
cannot be different, and suggest you file it as such.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
  m...@joachim-breitner.de  |  nome...@debian.org  |  GPG: 0x4743206C
  xmpp: nome...@joachim-breitner.de | http://www.joachim-breitner.de/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to