Skip to content

Commit

Permalink
Various changes to enable cross-compilation (without `-fexternal-inte…
Browse files Browse the repository at this point in the history
…rpreter`)

As it stands, we also need changes to `entropy`, but I'll manage that separately. Hopefully by reviving haskell#78.

Note that the custom setup is only used for `cabal-doctest`, so we really can just safely remove it. This is essentially the same issue as cdepillabout/pretty-simple#82.

Seeing as all the TH is just for `makeLenses`, in an ideal world we really ought to just be able to run on the host: see ghc-proposals/ghc-proposals#243.

The changes to the two `.hs` files are from dumping the TH splices (and manually (well, with _some_ help from HLS) adding a load of qualified imports). The splices can be found in `dist-newstyle` after adding this to `cabal.project`:

```
package wreq
    ghc-options: -ddump-splices -dth-dec-file
```
  • Loading branch information
georgefst committed Apr 15, 2022
1 parent 2da0070 commit 65770b2
Show file tree
Hide file tree
Showing 5 changed files with 2,320 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist*
Loading

0 comments on commit 65770b2

Please sign in to comment.