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
29 | BitwiseNot deriving (Show, Eq, Data, Typeable)
42 | GreaterThanOrEqualTo
51 | Concat deriving (Show, Eq, Data, Typeable)
54 = NumericLiteral (Either Integer Double)
55 | StringLiteral String
57 | Unary UnaryOperator Value
58 | Binary BinaryOperator Value Value
59 | BinaryNoParens (Qualified Ident) Value Value
61 | ArrayLiteral [Value]
63 | ObjectLiteral [(String, Value)]
64 | Accessor String Value
65 | ObjectUpdate Value [(String, Value)]
68 | Var (Qualified Ident)
69 | IfThenElse Value Value Value
71 | Constructor (Qualified ProperName)
72 | Case [Value] [([Binder], Maybe Guard, Value)]
73 | TypedValue Value Type
74 | Do Value [DoNotationElement] deriving (Show, Data, Typeable)
77 = DoNotationValue Value
78 | DoNotationBind Binder Value
79 | DoNotationLet Binder Value
80 | DoNotationReturn Value deriving (Show, Data, Typeable)
83 = VariableIntroduction Ident Value
84 | Assignment Ident Value
85 | While Value [Statement]
86 | For Ident Value Value [Statement]
88 | Return Value deriving (Show, Data, Typeable)
90data IfStatement = IfStatement Value [Statement] (Maybe ElseStatement) deriving (Show, Data, Typeable)
94 | ElseIf IfStatement deriving (Show, Data, Typeable)
100 | NumberBinder (Either Integer Double)
102 | NullaryBinder (Qualified ProperName)
103 | UnaryBinder (Qualified ProperName) Binder
104 | ObjectBinder [(String, Binder)]
105 | ArrayBinder [Binder]
106 | ConsBinder Binder Binder
107 | 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