1
1
mirror of https://github.com/nmattia/snack.git synced 2024-11-24 12:16:17 +03:00
Commit Graph

83 Commits

Author SHA1 Message Date
hyperfekt
68994e0bc2 remove trailing whitespace from snack-lib/default.nix 2020-10-05 15:29:16 +02:00
hyperfekt
00912cc678 make snack-lib use default compiler of given nixpkgs 2020-10-05 15:29:16 +02:00
hyperfekt
b3cbaf25c4 snack-lib compatibility with GHC >= 8.10 2020-10-05 15:29:16 +02:00
hyperfekt
cec643d227 snack-lib compatibility with GHC >= 8.8 2020-10-05 15:29:16 +02:00
hyperfekt
dda1eb2bcd patch callPackage to use haskellPackages from config
snack-lib ignored the compiler defined in the config when parsing
Haskell files because it wasn't passed on from default.nix to its other
parts
2020-10-05 15:29:16 +02:00
hyperfekt
4e13d139c7 remove ghcWithPackages option
Hoogle used the wrong packages (from haskellPackages) when the compiler
is configured only with ghcWithPackages
2020-10-05 15:29:16 +02:00
hyperfekt
d644e75a64 actually fail module build if unsuccessful
Without this, the module build will succeed and the linking phase will
fail due to missing object files, but will not display the error again.
2020-08-11 12:21:15 +02:00
Jinxuan Zhu
069f7d01fb Add Ghci options (#163)
* Add Ghci options

* Add ghci options test

* Remove Build for test
2019-11-20 20:52:14 +01:00
zhujinxuan
a76301a911 Add mainModule in spec to allow -main-is compiling 2019-11-13 10:18:24 +01:00
Nicolas Mattia
ddc5135b72 Use lightweight derivation 2019-11-02 15:13:52 +01:00
Nicolas Mattia
0dc6f95293 Update nixpkgs and use ghc 8.6.4 2019-07-28 14:26:07 +02:00
Stefan Matting
db43dc4c97 Add "hoogle" command 2019-06-12 17:40:25 +02:00
Nicolas Mattia
90938d85df Fix absolute paths in YAML import 2019-02-27 21:47:51 +01:00
Nicolas Mattia
abcdd06696 Make package import in YAML more robust 2019-02-27 21:04:50 +01:00
Nicolas Mattia
c2129fa221 Make package file discovery more robust 2019-02-27 20:34:47 +01:00
Nicolas Mattia
f09f33fed4 Support extra packages in yaml 2019-02-26 23:37:52 +01:00
Nicolas Mattia
a28c4c53b8 Simplify HPack loader 2019-02-26 21:03:16 +01:00
Nicolas Mattia
67b5a83d85 Reduce indirection in GHCi 2019-02-24 21:48:25 +01:00
Nicolas Mattia
6ad8515a1a Fix derivation name 2019-02-15 22:57:31 +01:00
Nicolas Mattia
31ab9ca5c1 nixpkgs: track 18.03 2019-02-05 18:06:06 +01:00
Nicolas Mattia
5d4bada51d Use ghc-options in HPack 2019-01-31 18:59:25 +01:00
Nicolas Mattia
6b4d8bb983 Force and infer executable names 2019-01-30 19:14:40 +01:00
Nicolas Mattia
ecefcc15dd Major build interface refactor 2019-01-29 22:15:09 +01:00
Nicolas Mattia
d206d019fd wip 2019-01-18 20:51:51 +01:00
Nicolas Mattia
efa6f56c8b Allow no source-dirs in hpack 2019-01-17 22:18:43 +01:00
Nicolas Mattia
ed7f604ecf Allow multiple source directories 2018-11-18 13:59:53 +04:00
Nicolas Mattia
1337e52094 Clean up files.nix 2018-11-18 13:02:10 +04:00
Nicolas Mattia
6bfd266494 Fix CPP parsing with global extensions 2018-10-21 18:51:35 +02:00
2mol
217cd28b91 improve matching against .hs files 2018-10-21 13:49:01 +02:00
Phil de Joux
e42469b67f Yaml.decode is deprecated, use decodeEither' instead, #87. 2018-10-12 15:15:00 -04:00
Nicolas Mattia
726690f4c8 snack.nix: allow more overrides 2018-10-04 21:30:56 +03:00
Nicolas Mattia
6904d6b4f5 Rename snack.nix -> package.nix 2018-10-04 21:30:56 +03:00
Nicolas Mattia
1ee0684116 imports: filter out BOM 2018-10-03 21:37:09 +03:00
Nicolas Mattia
e8841fff02 Fix CPP pragma parsing 2018-10-03 21:10:38 +03:00
Rupert Horlick
10630e0971
Change args to snack-lib and add mkPackage 2018-09-25 16:54:33 -04:00
Rupert Horlick
d7e1951144
Correctly propagate build dependencies 2018-09-25 16:53:35 -04:00
Nicolas Mattia
ee31bb94cb Fix nubbing 2018-09-10 21:04:40 +03:00
Nicolas Mattia
6860bac91f Don't use store paths as attr names 2018-09-01 20:41:32 +03:00
Nicolas Mattia
bbef676f09 Enable utf-8 when parsing dependencies 2018-08-26 19:29:05 +03:00
Nicolas Mattia
aee7906cfd Filter haskell modules heuristicly 2018-08-26 18:21:25 +03:00
Nicolas Mattia
b87b2164a9 Strip bound versions everywhere 2018-08-26 17:29:53 +03:00
Nicolas Mattia
817e9efb57 Use GHC's parser 2018-08-26 16:45:16 +03:00
Nicolas Mattia
0e037aa6ab hpack: fix bug on missing dependencies attr 2018-08-26 16:44:33 +03:00
Nicolas Mattia
2647f7b064 Remove empty line 2018-07-29 19:29:49 +02:00
Nicolas Mattia
b50a48a644 Use all transitive imports during build 2018-07-27 18:22:59 +02:00
Nicolas Mattia
c5c04957be Fix nested modules 2018-07-25 20:43:32 +02:00
Nicolas Mattia
972549ee93 Add comment 2018-07-23 23:42:57 +02:00
Nicolas Mattia
7788e6a39d Better HPack support 2018-07-08 13:33:34 +02:00
Nicolas Mattia
451e0d86da Rearrange imports 2018-07-06 15:44:59 +02:00
Nicolas Mattia
191065293d Stop threading singleOut everywhere 2018-07-06 15:40:29 +02:00