ennocramer / floskell

Floskell is a flexible Haskell source code pretty printer.
BSD 3-Clause "New" or "Revised" License
178 stars 22 forks source link

QuasiQuoter support :) #36

Closed ChrisPenner closed 5 years ago

ChrisPenner commented 5 years ago

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! 🍻

ChrisPenner commented 5 years ago

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