File: nastyhack

package info (click to toggle)
cpphs 1.18.5-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 812 kB
  • ctags: 21
  • sloc: haskell: 1,707; sh: 120; makefile: 49; ansic: 11
file content (16 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define GHC_PKG_VERSION 6.2.2
-- hackery to convice cpp to splice GHC_PKG_VERSION into a string
version :: String
version = tail "\ 
    \ GHC_PKG_VERSION"

version2 = "GHC_PKG_VERSION"

#define v3 "GHC_PKG_VERSION"
version3 = v3

#define stringify(s) #s
version4 = stringify(GHC_PKG_VERSION)

#define stringify2(s) "s"
version5 = stringify2(GHC_PKG_VERSION)