@@ -2,9 +2,11 @@
2{-# LANGUAGE OverloadedStrings #-}
2{-# LANGUAGE OverloadedStrings #-}
3module AST.Module.Name
3module AST.Module.Name
4 ( Canonical(..)
4 ( Canonical(..)
5+ , basics, char, string
5− , basics, maybe, list, array
6+ , maybe, list, array
6 , platform, cmd, sub
7 , platform, cmd, sub
7 , jsonDecode, jsonEncode
8 , jsonDecode, jsonEncode
9+ , webgl, vector2, vector3, vector4, matrix4
8 , canonicalToText
10 , canonicalToText
9 , isKernel, getKernel, canonicalIsKernel
11 , isKernel, getKernel, canonicalIsKernel
@@ -34,7 +36,7 @@ data Canonical =
37−-- HELPERS
39+-- PRIMITIVES
40{-# NOINLINE basics #-}
42{-# NOINLINE basics #-}
@@ -42,6 +44,20 @@ basics :: Canonical
42basics = Canonical Pkg.core "Basics"
44basics = Canonical Pkg.core "Basics"
49+char = Canonical Pkg.core "Char"
52+{-# NOINLINE string #-}
54+string = Canonical Pkg.core "String"
45{-# NOINLINE maybe #-}
61{-# NOINLINE maybe #-}
46maybe :: Canonical
62maybe :: Canonical
47maybe = Canonical Pkg.core "Maybe"
63maybe = Canonical Pkg.core "Maybe"
@@ -57,6 +73,10 @@ array :: Canonical
57array = Canonical Pkg.core "Array"
73array = Canonical Pkg.core "Array"
60{-# NOINLINE platform #-}
80{-# NOINLINE platform #-}
61platform :: Canonical
81platform :: Canonical
62platform = Canonical Pkg.core "Platform"
82platform = Canonical Pkg.core "Platform"
@@ -72,6 +92,10 @@ sub :: Canonical
72sub = Canonical Pkg.core "Platform.Sub"
92sub = Canonical Pkg.core "Platform.Sub"
75{-# NOINLINE jsonDecode #-}
99{-# NOINLINE jsonDecode #-}
76jsonDecode :: Canonical
100jsonDecode :: Canonical
77jsonDecode = Canonical Pkg.core "Json.Decode"
101jsonDecode = Canonical Pkg.core "Json.Decode"
@@ -83,6 +107,35 @@ jsonEncode = Canonical Pkg.core "Json.Encode"
113+{-# NOINLINE webgl #-}
115+webgl = Canonical Pkg.webgl "WebGL"
118+{-# NOINLINE vector2 #-}
120+vector2 = Canonical Pkg.linearAlgebra "Math.Vector2"
123+{-# NOINLINE vector3 #-}
125+vector3 = Canonical Pkg.linearAlgebra "Math.Vector3"
128+{-# NOINLINE vector4 #-}
130+vector4 = Canonical Pkg.linearAlgebra "Math.Vector4"
133+{-# NOINLINE matrix4 #-}
135+matrix4 = Canonical Pkg.linearAlgebra "Math.Matrix4"
86-- CONVERSIONS
139-- CONVERSIONS