git.iko.soy/rowtype-yoga/purescript-native
on d9a1d43 help sign in
198 lines 2.6 kB history raw
1-----------------------------------------------------------------------------
2--
3-- Module : Language.PureScript.Constants
4-- Copyright : (c) Phil Freeman 2013
5-- License : MIT
6--
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
9-- Portability :
10--
11-- |
12-- Various constants which refer to things in the Prelude
13--
14-----------------------------------------------------------------------------
16module Language.PureScript.Constants where
18-- Prelude Operators
20($) :: String
21($) = "$"
23(#) :: String
24(#) = "#"
26(!!) :: String
27(!!) = "!!"
29(++) :: String
30(++) = "++"
32(<>) :: String
33(<>) = "<>"
35(>>=) :: String
36(>>=) = ">>="
38(+) :: String
39(+) = "+"
41(-) :: String
42(-) = "-"
44(*) :: String
45(*) = "*"
47(/) :: String
48(/) = "/"
50(%) :: String
51(%) = "%"
53(<) :: String
54(<) = "<"
56(>) :: String
57(>) = ">"
59(<=) :: String
60(<=) = "<="
62(>=) :: String
63(>=) = ">="
65(==) :: String
66(==) = "=="
68(/=) :: String
69(/=) = "/="
71(&) :: String
72(&) = "&"
74bar :: String
75bar = "|"
77(^) :: String
78(^) = "^"
80(&&) :: String
81(&&) = "&&"
83(||) :: String
84(||) = "||"
86-- Prelude Operator Functions
88negate :: String
89negate = "negate"
91shl :: String
92shl = "shl"
94shr :: String
95shr = "shr"
97zshr :: String
98zshr = "zshr"
100complement :: String
101complement = "complement"
103not :: String
104not = "not"
106-- Prelude Values
108return :: String
109return = "return"
111returnEscaped :: String
112returnEscaped = "$return"
114untilE :: String
115untilE = "untilE"
117whileE :: String
118whileE = "whileE"
120runST :: String
121runST = "runST"
123runSTArray :: String
124runSTArray = "runSTArray"
126stRefValue :: String
127stRefValue = "value"
129newSTRef :: String
130newSTRef = "newSTRef"
132readSTRef :: String
133readSTRef = "readSTRef"
135writeSTRef :: String
136writeSTRef = "writeSTRef"
138modifySTRef :: String
139modifySTRef = "modifySTRef"
141peekSTArray :: String
142peekSTArray = "peekSTArray"
144pokeSTArray :: String
145pokeSTArray = "pokeSTArray"
147-- Type Class Dictionary Names
149monadEffDictionary :: String
150monadEffDictionary = "monadEff"
152semigroupString :: String
153semigroupString = "semigroupString"
155numNumber :: String
156numNumber = "numNumber"
158ordNumber :: String
159ordNumber = "ordNumber"
161eqNumber :: String
162eqNumber = "eqNumber"
164eqString :: String
165eqString = "eqString"
167eqBoolean :: String
168eqBoolean = "eqBoolean"
170bitsNumber :: String
171bitsNumber = "bitsNumber"
173boolLikeBoolean :: String
174boolLikeBoolean = "boolLikeBoolean"
176-- Main module
178main :: String
179main = "main"
181-- Code Generation
183_ps :: String
184_ps = "_ps"
186-- Modules
188prim :: String
189prim = "Prim"
191prelude :: String
192prelude = "Prelude"
194eff :: String
195eff = "Control_Monad_Eff"
197st :: String
198st = "Control_Monad_ST"