ennocramer/floskell

QuasiQuoter support :)

ChrisPenner opened this issue · 1 comments

Howdy! I found another dark corner of Haskell syntax:

{-# LANGUAGE TemplateHaskell #-}

import Text.RawString.QQ
myStringThing :: String
myStringThing = [r|
        delete from myTable
          where user = ?
    |]

Ends up:

floskell: <stdin>:4:11: Parse error: where
CallStack (from HasCallStack):
  error, called at src/main/Main.hs:164:12 in main:Main

Cheers! 🍻

Whoops, think I just forgot to add QuasiQuoter to language pragmas 😅