Blame view

bower_components/prism/tests/languages/haskell/builtin_feature.test 6.98 KB
eb240478   Luigi Serra   public room cards...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
  abs acos acosh all and

  any appendFile approxRational

  asTypeOf asin asinh atan

  atan2 atanh basicIORun break

  catch ceiling chr compare

  concat concatMap const

  cos cosh curry cycle

  decodeFloat denominator

  digitToInt div divMod

  drop dropWhile either

  elem encodeFloat enumFrom

  enumFromThen enumFromThenTo

  enumFromTo error even exp

  exponent fail filter flip

  floatDigits floatRadix

  floatRange floor fmap

  foldl foldl1 foldr foldr1

  fromDouble fromEnum fromInt

  fromInteger fromIntegral

  fromRational fst gcd

  getChar getContents getLine

  group head id inRange index

  init intToDigit interact

  ioError isAlpha isAlphaNum

  isAscii isControl isDenormalized

  isDigit isHexDigit isIEEE

  isInfinite isLower isNaN

  isNegativeZero isOctDigit

  isPrint isSpace isUpper iterate

  last lcm length lex

  lexDigits lexLitChar lines

  log logBase lookup map

  mapM mapM_ max maxBound

  maximum maybe min minBound

  minimum mod negate not

  notElem null numerator odd

  or ord otherwise pack pi

  pred primExitWith print

  product properFraction

  putChar putStr putStrLn quot

  quotRem range rangeSize read

  readDec readFile readFloat readHex

  readIO readInt readList

  readLitChar readLn readOct

  readParen readSigned reads

  readsPrec realToFrac recip

  rem repeat replicate return

  reverse round scaleFloat

  scanl scanl1 scanr scanr1

  seq sequence sequence_ show

  showChar showInt showList

  showLitChar showParen showSigned

  showString shows showsPrec

  significand signum sin sinh

  snd sort span splitAt sqrt

  subtract succ sum tail take

  takeWhile tan tanh threadToIOResult

  toEnum toInt toInteger

  toLower toRational toUpper

  truncate uncurry undefined

  unlines until unwords

  unzip unzip3 userError words

  writeFile zip zip3 zipWith

  zipWith3

  

  ----------------------------------------------------

  

  [

  	["builtin", "abs"], ["builtin", "acos"], ["builtin", "acosh"], ["builtin", "all"], ["builtin", "and"],

  	["builtin", "any"], ["builtin", "appendFile"], ["builtin", "approxRational"],

  	["builtin", "asTypeOf"], ["builtin", "asin"], ["builtin", "asinh"], ["builtin", "atan"],

  	["builtin", "atan2"], ["builtin", "atanh"], ["builtin", "basicIORun"], ["builtin", "break"],

  	["builtin", "catch"], ["builtin", "ceiling"], ["builtin", "chr"], ["builtin", "compare"],

  	["builtin", "concat"], ["builtin", "concatMap"], ["builtin", "const"],

  	["builtin", "cos"], ["builtin", "cosh"], ["builtin", "curry"], ["builtin", "cycle"],

  	["builtin", "decodeFloat"], ["builtin", "denominator"],

  	["builtin", "digitToInt"], ["builtin", "div"], ["builtin", "divMod"],

  	["builtin", "drop"], ["builtin", "dropWhile"], ["builtin", "either"],

  	["builtin", "elem"], ["builtin", "encodeFloat"], ["builtin", "enumFrom"],

  	["builtin", "enumFromThen"], ["builtin", "enumFromThenTo"],

  	["builtin", "enumFromTo"], ["builtin", "error"], ["builtin", "even"], ["builtin", "exp"],

  	["builtin", "exponent"], ["builtin", "fail"], ["builtin", "filter"], ["builtin", "flip"],

  	["builtin", "floatDigits"], ["builtin", "floatRadix"],

  	["builtin", "floatRange"], ["builtin", "floor"], ["builtin", "fmap"],

  	["builtin", "foldl"], ["builtin", "foldl1"], ["builtin", "foldr"], ["builtin", "foldr1"],

  	["builtin", "fromDouble"], ["builtin", "fromEnum"], ["builtin", "fromInt"],

  	["builtin", "fromInteger"], ["builtin", "fromIntegral"],

  	["builtin", "fromRational"], ["builtin", "fst"], ["builtin", "gcd"],

  	["builtin", "getChar"], ["builtin", "getContents"], ["builtin", "getLine"],

  	["builtin", "group"], ["builtin", "head"], ["builtin", "id"], ["builtin", "inRange"], ["builtin", "index"],

  	["builtin", "init"], ["builtin", "intToDigit"], ["builtin", "interact"],

  	["builtin", "ioError"], ["builtin", "isAlpha"], ["builtin", "isAlphaNum"],

  	["builtin", "isAscii"], ["builtin", "isControl"], ["builtin", "isDenormalized"],

  	["builtin", "isDigit"], ["builtin", "isHexDigit"], ["builtin", "isIEEE"],

  	["builtin", "isInfinite"], ["builtin", "isLower"], ["builtin", "isNaN"],

  	["builtin", "isNegativeZero"], ["builtin", "isOctDigit"],

  	["builtin", "isPrint"], ["builtin", "isSpace"], ["builtin", "isUpper"], ["builtin", "iterate"],

  	["builtin", "last"], ["builtin", "lcm"], ["builtin", "length"], ["builtin", "lex"],

  	["builtin", "lexDigits"], ["builtin", "lexLitChar"], ["builtin", "lines"],

  	["builtin", "log"], ["builtin", "logBase"], ["builtin", "lookup"], ["builtin", "map"],

  	["builtin", "mapM"], ["builtin", "mapM_"], ["builtin", "max"], ["builtin", "maxBound"],

  	["builtin", "maximum"], ["builtin", "maybe"], ["builtin", "min"], ["builtin", "minBound"],

  	["builtin", "minimum"], ["builtin", "mod"], ["builtin", "negate"], ["builtin", "not"],

  	["builtin", "notElem"], ["builtin", "null"], ["builtin", "numerator"], ["builtin", "odd"],

  	["builtin", "or"], ["builtin", "ord"], ["builtin", "otherwise"], ["builtin", "pack"], ["builtin", "pi"],

  	["builtin", "pred"], ["builtin", "primExitWith"], ["builtin", "print"],

  	["builtin", "product"], ["builtin", "properFraction"],

  	["builtin", "putChar"], ["builtin", "putStr"], ["builtin", "putStrLn"], ["builtin", "quot"],

  	["builtin", "quotRem"], ["builtin", "range"], ["builtin", "rangeSize"], ["builtin", "read"],

  	["builtin", "readDec"], ["builtin", "readFile"], ["builtin", "readFloat"], ["builtin", "readHex"],

  	["builtin", "readIO"], ["builtin", "readInt"], ["builtin", "readList"],

  	["builtin", "readLitChar"], ["builtin", "readLn"], ["builtin", "readOct"],

  	["builtin", "readParen"], ["builtin", "readSigned"], ["builtin", "reads"],

  	["builtin", "readsPrec"], ["builtin", "realToFrac"], ["builtin", "recip"],

  	["builtin", "rem"], ["builtin", "repeat"], ["builtin", "replicate"], ["builtin", "return"],

  	["builtin", "reverse"], ["builtin", "round"], ["builtin", "scaleFloat"],

  	["builtin", "scanl"], ["builtin", "scanl1"], ["builtin", "scanr"], ["builtin", "scanr1"],

  	["builtin", "seq"], ["builtin", "sequence"], ["builtin", "sequence_"], ["builtin", "show"],

  	["builtin", "showChar"], ["builtin", "showInt"], ["builtin", "showList"],

  	["builtin", "showLitChar"], ["builtin", "showParen"], ["builtin", "showSigned"],

  	["builtin", "showString"], ["builtin", "shows"], ["builtin", "showsPrec"],

  	["builtin", "significand"], ["builtin", "signum"], ["builtin", "sin"], ["builtin", "sinh"],

  	["builtin", "snd"], ["builtin", "sort"], ["builtin", "span"], ["builtin", "splitAt"], ["builtin", "sqrt"],

  	["builtin", "subtract"], ["builtin", "succ"], ["builtin", "sum"], ["builtin", "tail"], ["builtin", "take"],

  	["builtin", "takeWhile"], ["builtin", "tan"], ["builtin", "tanh"], ["builtin", "threadToIOResult"],

  	["builtin", "toEnum"], ["builtin", "toInt"], ["builtin", "toInteger"],

  	["builtin", "toLower"], ["builtin", "toRational"], ["builtin", "toUpper"],

  	["builtin", "truncate"], ["builtin", "uncurry"], ["builtin", "undefined"],

  	["builtin", "unlines"], ["builtin", "until"], ["builtin", "unwords"],

  	["builtin", "unzip"], ["builtin", "unzip3"], ["builtin", "userError"], ["builtin", "words"],

  	["builtin", "writeFile"], ["builtin", "zip"], ["builtin", "zip3"], ["builtin", "zipWith"],

  	["builtin", "zipWith3"]

  ]

  

  ----------------------------------------------------

  

  Checks for all builtin.