Skip to content

Commit

Permalink
Add cabal scripts from reflex-platform-skeleton, #7.
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Sep 23, 2018
1 parent bc08f72 commit d22b18d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# SEE: https://github.com/ElvishJerricco/reflex-project-skeleton

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

nix-shell -Q $DIR/default.nix -A shells.ghc --add-root $DIR/dist-newstyle/gc-roots/gc-root --indirect --run "cabal $(printf "%q " "$@")"
6 changes: 6 additions & 0 deletions cabal-ghcjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# SEE: https://github.com/ElvishJerricco/reflex-project-skeleton

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

nix-shell -Q $DIR/default.nix -A shells.ghcjs --add-root $DIR/dist-ghcjs/gc-roots/gc-root --indirect --run "cabal --project-file=$DIR/cabal-ghcjs.project --builddir=dist-ghcjs $(printf "%q " "$@")"
3 changes: 3 additions & 0 deletions cabal-ghcjs.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
compiler: ghcjs
packages:
app-view/

0 comments on commit d22b18d

Please sign in to comment.