1-----------------------------------------------------------------------------
3-- Module : Language.PureScript.Names
4-- Copyright : (c) Phil Freeman 2013
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
13-----------------------------------------------------------------------------
15{-# LANGUAGE DeriveDataTypeable #-}
17module Language.PureScript.Names where
21data Ident = Ident String | Op String deriving (Eq, Ord, Data, Typeable)
23instance Show Ident where
25 show (Op op) = '(':op ++ ")"
27newtype ProperName = ProperName { runProperName :: String } deriving (Eq, Ord, Data, Typeable)
29instance Show ProperName where
32data ModuleName = ModuleName ProperName deriving (Eq, Ord, Data, Typeable)
34instance Show ModuleName where
35 show (ModuleName name) = show name
37data Qualified a = Qualified (Maybe ModuleName) a deriving (Eq, Ord, Data, Typeable)
39instance (Show a) => Show (Qualified a) where
40 show (Qualified Nothing a) = show a
41 show (Qualified (Just (ModuleName name)) a) = show name ++ "." ++ show a
43qualify :: ModuleName -> Qualified a -> (ModuleName, a)
44qualify m (Qualified Nothing a) = (m, a)
45qualify _ (Qualified (Just m) a) = (m, a)
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