git.iko.soy/rowtype-yoga/purescript-native
on f34cf92 help sign in
192 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(&) = "&"
71bar :: String
72bar = "|"
74(^) :: String
75(^) = "^"
77(&&) :: String
78(&&) = "&&"
80(||) :: String
81(||) = "||"
83-- Prelude Operator Functions
85negate :: String
86negate = "negate"
88shl :: String
89shl = "shl"
91shr :: String
92shr = "shr"
94zshr :: String
95zshr = "zshr"
97complement :: String
98complement = "complement"
100not :: String
101not = "not"
103-- Prelude Values
105return :: String
106return = "return"
108returnEscaped :: String
109returnEscaped = "$return"
111untilE :: String
112untilE = "untilE"
114whileE :: String
115whileE = "whileE"
117runST :: String
118runST = "runST"
120runSTArray :: String
121runSTArray = "runSTArray"
123stRefValue :: String
124stRefValue = "value"
126newSTRef :: String
127newSTRef = "newSTRef"
129readSTRef :: String
130readSTRef = "readSTRef"
132writeSTRef :: String
133writeSTRef = "writeSTRef"
135modifySTRef :: String
136modifySTRef = "modifySTRef"
138peekSTArray :: String
139peekSTArray = "peekSTArray"
141pokeSTArray :: String
142pokeSTArray = "pokeSTArray"
144-- Type Class Dictionary Names
146monadEffDictionary :: String
147monadEffDictionary = "monadEff"
149numNumber :: String
150numNumber = "numNumber"
152ordNumber :: String
153ordNumber = "ordNumber"
155eqNumber :: String
156eqNumber = "eqNumber"
158eqString :: String
159eqString = "eqString"
161eqBoolean :: String
162eqBoolean = "eqBoolean"
164bitsNumber :: String
165bitsNumber = "bitsNumber"
167boolLikeBoolean :: String
168boolLikeBoolean = "boolLikeBoolean"
170-- Main module
172main :: String
173main = "main"
175-- Code Generation
177_ps :: String
178_ps = "_ps"
180-- Modules
182prim :: String
183prim = "Prim"
185prelude :: String
186prelude = "Prelude"
188eff :: String
189eff = "Control_Monad_Eff"
191st :: String
192st = "Control_Monad_ST"