-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: generate sumtype via template (#3)
- Loading branch information
1 parent
4e4f872
commit a6f2d9a
Showing
8 changed files
with
87 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "src/Lib/x-sum-type-boilerplate"] | ||
path = src/Lib/x-sum-type-boilerplate | ||
url = https://github.com/xieyuschen/x-sum-type-boilerplate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,20 @@ author: xieyuschen | |
maintainer: [email protected] | ||
build-type: Simple | ||
extra-doc-files: CHANGELOG.md | ||
|
||
-- todo: remove this after I upload my forked version to hackage | ||
-- https://github.com/xieyuschen/x-sum-type-boilerplate | ||
library x-sum-type-boilerplate | ||
exposed-modules: | ||
SumTypes.TH | ||
hs-source-dirs: | ||
src/Lib/x-sum-type-boilerplate/library | ||
ghc-options: -Wall | ||
build-depends: | ||
base >= 4.1 && < 4.20 | ||
, template-haskell | ||
default-language: Haskell2010 | ||
|
||
common warnings | ||
ghc-options: -Wall | ||
|
||
|
@@ -20,7 +34,10 @@ common common-depends | |
text, | ||
bytestring, | ||
hspec, | ||
parsec ^>=3.1.16.1 | ||
parsec ^>=3.1.16.1, | ||
-- force to use my forked version | ||
x-sum-type-boilerplate | ||
|
||
library internallib | ||
import: common-depends | ||
exposed-modules: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module Lib.AST.File where | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule x-sum-type-boilerplate
added at
5667c1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters