1-----------------------------------------------------------------------------
3-- Module : PureScript.Declarations
4-- Copyright : (c) Phil Freeman 2013
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
13-----------------------------------------------------------------------------
15{-# LANGUAGE DeriveDataTypeable #-}
17module PureScript.Declarations where
19import PureScript.Values
20import PureScript.Types
21import PureScript.Names
22import PureScript.Kinds
24import qualified Data.Data as D
26type Precedence = Integer
28data Associativity = Infixl | Infixr deriving (Show, D.Data, D.Typeable)
30data Fixity = Fixity Associativity Precedence deriving (Show, D.Data, D.Typeable)
33 = DataDeclaration String [String] [(String, Maybe Type)]
34 | TypeSynonymDeclaration String [String] Type
35 | TypeDeclaration Ident PolyType
36 | ValueDeclaration Ident Value
37 | ExternDeclaration Ident PolyType
38 | ExternDataDeclaration String Kind
39 | FixityDeclaration Fixity String deriving (Show, D.Data, D.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