-- A comment | |
Not(--"a comment") | |
Also.not(--(A.comment)) | |
module Foo(bar) where | |
import Blah | |
import BlahBlah(blah) | |
import Monads(Exception(..), FIO(..),unFIO,handle,runFIO,fixFIO,fio, | |
write,writeln,HasNext(..),HasOutput(..)) | |
{- nested comments | |
- don't work {-yet-} -} | |
instance Thingy Foo where | |
a = b | |
data Foo :: (* -> * -> *) -> * > * -> * where | |
Nil :: Foo a b c | |
Cons :: a b c -> Foo abc -> Foo a b c | |
str = "Foo\\Bar" | |
char = 'x' | |
Not.A.Char = 'too long' -- Don't barf. Show that 't is a lexical error. | |
(ident, ident', Fo''o.b'ar) | |
(0, 12, 0x45, 0xA7, 0o177, 0O377, 0.1, 1.0, 1e3, 0.5E-3, 1.0E+45) |