Skip to content

Commit

Permalink
Add a dummy lib package and allow usability with Stack (lts >= 5.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
da-x committed May 8, 2016
1 parent b9cac73 commit 65c2494
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ HappyTemplate-coerce
HappyTemplate-ghc
.*.swp
.*.swo
.stack-work/
7 changes: 7 additions & 0 deletions happy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ executable happy
AttrGrammarParser
ParamRules

library
hs-source-dirs: lib
ghc-options: -Wall -O2 -rtsopts
exposed-modules: HappyDummy
build-depends: base >= 4.7
default-language: Haskell2010

test-suite tests
type: exitcode-stdio-1.0
main-is: test.hs
Expand Down
1 change: 1 addition & 0 deletions lib/HappyDummy.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module HappyDummy where
6 changes: 6 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resolver: lts-5.15
packages:
- '.'
flags:
happy:
small_base: true

0 comments on commit 65c2494

Please sign in to comment.