File: expect25

package info (click to toggle)
hugs98 98.200609.21-6
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 43,136 kB
  • sloc: haskell: 118,978; xml: 61,802; ansic: 46,695; sh: 8,750; cpp: 6,033; makefile: 2,663; yacc: 1,111; cs: 883; sed: 10
file content (15 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#line 1 "text"
Here is some ordinary text with embedded Haskell-ish constructs,
that should however /not/ be interpreted as Haskell if the --text
option is given to cpphs.  For instance, here is a Haskell comment
including a cpp definition: {-

and now we end the comment: -}   and try out the definition:  bar
Likewise, double and single quotes no longer delimit strings or chars: "

and what do we have here?: "  ' bar  '


Also, in text-mode, macros should be expanded inside Haskell comments:
    -- Some text including this, the other, and that.
and strings "Some text including this, the other, and that.".