Skip to content

Trailing whitespace is trimmed inside quasiquotes #100

@expipiplus1

Description

@expipiplus1

The meaning of this program is changed by running stylish-haskell over it. Note the trailing space character in the first line of the quasiquote.

{-# LANGUAGE QuasiQuotes #-}

import           Acme.Missiles
import           Text.RawString.QQ

main = do
  let -- Space based nuclear defense.
      l = length [r| 
|]
  if l == 1
    then launchMissiles
    else putStrLn "Phew..."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions