Skip to content

Commit fa92f9d

Browse files
committed
Generating for psc > 0.9.
Expected uncurry optimization to be applied with bundle tool.
1 parent 976f712 commit fa92f9d

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

WebGLRaw.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
"use strict";
77

8-
98
exports.getContextAttributes_ = function ()
109
{var res = gl.getContextAttributes();
1110
if (res === undefined){

WebGLRaw.purs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
-- Auto generated: don't change manually, use purescript-webgl-generator to modify!!
22
module Graphics.WebGLRaw where
33

4-
import Control.Monad.Eff
5-
import Control.Monad.Eff.WebGL
6-
import Data.ArrayBuffer.Types
7-
import Data.TypedArray
84
import Prelude
5+
import Control.Monad.Eff (Eff)
6+
import Control.Monad.Eff.WebGL (WebGl)
7+
import Data.ArrayBuffer.Types (Int32Array, Float32Array)
98

109

1110
type GLenum = Int

purescript-webgl-generator.cabal

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ maintainer: [email protected]
88
category: Development
99
author: Jürgen (Jutaro) Nicklisch-Franken
1010
data-dir: ""
11-
11+
1212
executable purescript-webgl-generator
13-
build-depends: transformers >=0.4.2.0 && <0.5,
14-
parsec >=3.1.7 && <3.2, base >=4.7 && <4.8, pretty >=1.1.1
13+
build-depends: base >= 4.9.0 && < 4.10,
14+
parsec >= 3.1.11 && < 3.2,
15+
transformers >= 0.5.2 && < 0.6,
16+
pretty >= 1.1.3 && < 1.2
1517
main-is: Main.hs
1618
buildable: True
1719
default-language: Haskell2010
1820
hs-source-dirs: src
1921
other-modules: IDL.AST IDL.Parser IDL.Printer
20-
21-

src/IDL/Printer.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ ppPureScriptFFI idl =
3737
(["-- Auto generated: don't change manually, use purescript-webgl-generator to modify!!",
3838
"module Graphics.WebGLRaw where",
3939
"",
40-
"import Control.Monad.Eff",
41-
"import Control.Monad.Eff.WebGL",
42-
"import Data.ArrayBuffer.Types",
43-
"import Data.TypedArray",
4440
"import Prelude",
41+
"import Control.Monad.Eff (Eff)",
42+
"import Control.Monad.Eff.WebGL (WebGl)",
43+
"import Data.ArrayBuffer.Types (Int32Array, Float32Array)",
4544
"",
4645
""] ++ typedefs))
4746

0 commit comments

Comments
 (0)