Skip to content

Commit

Permalink
Tutorials cabalized (needed for ghc-mod to work with cabal sandboxes!)
Browse files Browse the repository at this point in the history
  • Loading branch information
YPares committed Oct 10, 2013
1 parent 5609182 commit abcacf3
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 4 deletions.
4 changes: 0 additions & 4 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ These tutorials are "loose" haskell ports of those available at http://www.openg
- They use OpenGL 3.1, instead of the original 3.3 (the laptop I'm using only has an Intel HD3000 chipset).
- When Haskell allows me to take shortcuts (i.e. reduce the verbosity), then I do take them.

# TODO

Cabalize it up.

2 changes: 2 additions & 0 deletions tutorial01/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain
24 changes: 24 additions & 0 deletions tutorial01/tutorial01.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- Initial tutorial03.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/

name: tutorial01
version: 0.1.0.0
-- synopsis:
-- description:
-- license:
license-file: LICENSE
author: YPares
maintainer: yves.pares@gmail.com
-- copyright:
-- category:
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10

executable tutorial01
main-is: main.hs
-- other-modules:
-- other-extensions:
build-depends: base >=4.5 && <4.6, OpenGLRaw, GLFW-b <=0.1.0.5, Vec
-- hs-source-dirs:
default-language: Haskell2010
2 changes: 2 additions & 0 deletions tutorial02/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain
24 changes: 24 additions & 0 deletions tutorial02/tutorial02.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- Initial tutorial03.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/

name: tutorial02
version: 0.1.0.0
-- synopsis:
-- description:
-- license:
license-file: LICENSE
author: YPares
maintainer: yves.pares@gmail.com
-- copyright:
-- category:
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10

executable tutorial02
main-is: main.hs
-- other-modules:
-- other-extensions:
build-depends: base >=4.5 && <4.6, OpenGLRaw, GLFW-b <=0.1.0.5, Vec
-- hs-source-dirs:
default-language: Haskell2010
2 changes: 2 additions & 0 deletions tutorial03/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain
24 changes: 24 additions & 0 deletions tutorial03/tutorial03.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- Initial tutorial03.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/

name: tutorial03
version: 0.1.0.0
-- synopsis:
-- description:
-- license:
license-file: LICENSE
author: YPares
maintainer: yves.pares@gmail.com
-- copyright:
-- category:
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10

executable tutorial03
main-is: main.hs
-- other-modules:
-- other-extensions:
build-depends: base >=4.5 && <4.6, OpenGLRaw, GLFW-b <=0.1.0.5, Vec
-- hs-source-dirs:
default-language: Haskell2010

0 comments on commit abcacf3

Please sign in to comment.