1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
13 , int, float, bool, char, string
14 , maybe, list, array, tuple, jsArray
15 , task, router, cmd, sub, platform, browser
16 , shader, debug, bitwise, basics
17 , utils, negate, value
18 , node, program, main, dollar, identity
23import Prelude hiding (length, maybe, negate)
24import qualified Data.ByteString.Builder as B
25import qualified Data.ByteString.Internal as B
26import qualified Data.ByteString.Short as S
27import qualified Data.Set as Set
28import qualified Data.Text as Text
29import qualified Data.Text.Encoding as Text
30import Data.Word (Word8)
31import Foreign.ForeignPtr (ForeignPtr)
46startsWith :: Name -> Name -> Bool
51toString :: Name -> String
56toBuilder :: Name -> B.Builder
58 Text.encodeUtf8Builder
61toShort :: Name -> S.ShortByteString
66addIndex :: Name -> Int -> Name
68 Text.append name (Text.pack (show i))
71toCompositeName :: Set.Set Name -> Name
72toCompositeName names =
73 Text.cons '$' (Text.intercalate "$" (Set.toList names))
80fromForeignPtr :: ForeignPtr Word8 -> Int -> Int -> Name
81fromForeignPtr fptr offset len =
82 Text.decodeUtf8 (B.PS fptr offset len)
109{-# NOINLINE string #-}
114{-# NOINLINE maybe #-}
124{-# NOINLINE array #-}
129{-# NOINLINE tuple #-}
134{-# NOINLINE jsArray #-}
144{-# NOINLINE router #-}
159{-# NOINLINE platform #-}
164{-# NOINLINE browser #-}
169{-# NOINLINE shader #-}
174{-# NOINLINE debug #-}
179{-# NOINLINE bitwise #-}
184{-# NOINLINE basics #-}
189{-# NOINLINE utils #-}
194{-# NOINLINE negate #-}
199{-# NOINLINE value #-}
209{-# NOINLINE program #-}
219{-# NOINLINE dollar #-}
224{-# NOINLINE identity #-}
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