Add failing test for template haskell splices #71

Closed
eborden wants to merge 1 commits from eborden/bug-top-level-template-haskell into dev

1 Commits (master)

Author SHA1 Message Date
Evan Rutledge Borden 910937985a Add failing test for template haskell splices
For some reason `brittany` is failing to print exact for top level
splices. This may be an issue in `brittany` or `ghc-exact-print`, I'm
not sure. I've added failing tests to highlight this issue. This bug
causes `brittany` to produce syntactically invalid Haskell.

```
1) template haskell top level splice
      expected: Right
                {-# LANGUAGE TemplateHaskell #-}
                deriveFromJSON (unPrefix "assignPost") ''AssignmentPost

      but got: Right
                {-# LANGUAGE TemplateHaskell #-}
                deriveFromJSON (unPrefix "assignPost") ''
```
2017-11-28 18:46:57 -05:00