1-----------------------------------------------------------------------------
3-- Module : PureScript.Values
4-- Copyright : (c) Phil Freeman 2013
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
13-----------------------------------------------------------------------------
15{-# LANGUAGE DeriveDataTypeable #-}
17module PureScript.Values where
19import PureScript.Types
20import PureScript.Names
27 | BitwiseNot deriving (Show, Eq, Data, Typeable)
40 | GreaterThanOrEqualTo
49 | Concat deriving (Show, Eq, Data, Typeable)
52 = NumericLiteral (Either Integer Double)
53 | StringLiteral String
55 | Unary UnaryOperator Value
56 | Binary BinaryOperator Value Value
57 | ArrayLiteral [Value]
59 | ObjectLiteral [(String, Value)]
60 | Accessor String Value
61 | ObjectUpdate Value [(String, Value)]
65 | IfThenElse Value Value Value
68 | Case Value [(Binder, Value)]
69 | TypedValue Value PolyType deriving (Show, Data, Typeable)
72 = VariableIntroduction Ident Value
73 | Assignment Ident Value
74 | While Value [Statement]
75 | For Ident Value Value [Statement]
76 | ForEach Ident Value [Statement]
78 | Return Value deriving (Show, Data, Typeable)
80data IfStatement = IfStatement Value [Statement] (Maybe ElseStatement) deriving (Show, Data, Typeable)
84 | ElseIf IfStatement deriving (Show, Data, Typeable)
90 | NumberBinder (Either Integer Double)
92 | NullaryBinder String
93 | UnaryBinder String Binder
94 | ObjectBinder [(String, Binder)]
95 | ArrayBinder [Binder] (Maybe Binder)
96 | NamedBinder Ident Binder
97 | GuardedBinder Value 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