1-----------------------------------------------------------------------------
3-- Module : Language.PureScript.Values
4-- Copyright : (c) Phil Freeman 2013
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
13-----------------------------------------------------------------------------
15{-# LANGUAGE DeriveDataTypeable #-}
17module Language.PureScript.Values where
19import Language.PureScript.Types
20import Language.PureScript.Names
30 | Positive deriving (Show, Eq, Data, Typeable)
43 | GreaterThanOrEqualTo
52 | Concat deriving (Show, Eq, Data, Typeable)
55 = NumericLiteral (Either Integer Double)
56 | StringLiteral String
58 | Unary UnaryOperator Value
59 | Binary BinaryOperator Value Value
60 | BinaryNoParens (Qualified Ident) Value Value
62 | ArrayLiteral [Value]
64 | ObjectLiteral [(String, Value)]
65 | Accessor String Value
66 | ObjectUpdate Value [(String, Value)]
69 | Var (Qualified Ident)
70 | IfThenElse Value Value Value
72 | Constructor (Qualified ProperName)
73 | Case [Value] [([Binder], Maybe Guard, Value)]
74 | TypedValue Value Type
75 | Do Value [DoNotationElement] deriving (Show, Data, Typeable)
78 = DoNotationValue Value
79 | DoNotationBind Binder Value
80 | DoNotationLet Binder Value
81 | DoNotationReturn Value deriving (Show, Data, Typeable)
84 = VariableIntroduction Ident Value
85 | Assignment Ident Value
86 | While Value [Statement]
87 | For Ident Value Value [Statement]
89 | Return Value deriving (Show, Data, Typeable)
91data IfStatement = IfStatement Value [Statement] (Maybe ElseStatement) deriving (Show, Data, Typeable)
95 | ElseIf IfStatement deriving (Show, Data, Typeable)
100 | StringBinder String
101 | NumberBinder (Either Integer Double)
103 | NullaryBinder (Qualified ProperName)
104 | UnaryBinder (Qualified ProperName) Binder
105 | ObjectBinder [(String, Binder)]
106 | ArrayBinder [Binder]
107 | ConsBinder Binder Binder
108 | NamedBinder Ident Binder deriving (Show, Data, Typeable)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list