1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
6 , maybe, result, list, array, tuple
8 , virtualDom, debug, bitwise
9 , jsonDecode, jsonEncode
10 , webgl, vector2, vector3, vector4, matrix4
11 , isKernel, getKernel, canonicalIsKernel
16import Prelude hiding (maybe)
17import Control.Monad (liftM2)
20import qualified Elm.Name as N
21import qualified Elm.Package as Pkg
30 { _package :: !Pkg.Name
36instance Eq Canonical where
37 (==) (Canonical pkg home) (Canonical pkg' home') =
38 home == home' && pkg == pkg'
45{-# NOINLINE basics #-}
47basics = Canonical Pkg.core "Basics"
52char = Canonical Pkg.core N.char
55{-# NOINLINE string #-}
57string = Canonical Pkg.core N.string
66maybe = Canonical Pkg.core N.maybe
69{-# NOINLINE result #-}
71result = Canonical Pkg.core N.result
76list = Canonical Pkg.core N.list
81array = Canonical Pkg.core N.array
86tuple = Canonical Pkg.core N.tuple
93{-# NOINLINE platform #-}
95platform = Canonical Pkg.core N.platform
100cmd = Canonical Pkg.core "Platform.Cmd"
105sub = Canonical Pkg.core "Platform.Sub"
112{-# NOINLINE virtualDom #-}
113virtualDom :: Canonical
114virtualDom = Canonical Pkg.virtualDom "VirtualDom"
117{-# NOINLINE debug #-}
119debug = Canonical Pkg.core N.debug
122{-# NOINLINE bitwise #-}
124bitwise = Canonical Pkg.core N.bitwise
131{-# NOINLINE jsonDecode #-}
132jsonDecode :: Canonical
133jsonDecode = Canonical Pkg.json "Json.Decode"
136{-# NOINLINE jsonEncode #-}
137jsonEncode :: Canonical
138jsonEncode = Canonical Pkg.json "Json.Encode"
145{-# NOINLINE webgl #-}
147webgl = Canonical Pkg.webgl "WebGL"
150{-# NOINLINE vector2 #-}
152vector2 = Canonical Pkg.linearAlgebra "Math.Vector2"
155{-# NOINLINE vector3 #-}
157vector3 = Canonical Pkg.linearAlgebra "Math.Vector3"
160{-# NOINLINE vector4 #-}
162vector4 = Canonical Pkg.linearAlgebra "Math.Vector4"
165{-# NOINLINE matrix4 #-}
167matrix4 = Canonical Pkg.linearAlgebra "Math.Matrix4"
174isKernel :: N.Name -> Bool
176 N.startsWith "Elm.Kernel." name
179getKernel :: N.Name -> N.Name
184canonicalIsKernel :: Canonical -> Bool
185canonicalIsKernel (Canonical _ name) =
193instance Binary Canonical where
194 put (Canonical a b) =
198 liftM2 Canonical get get
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