ekmett/trifecta — Issue #2: Fixits don't render properly
Author: thoughtpolice
Created: 2011-11-01 00:42:15+00:00
State: open

Consider the following snippet:

```haskell
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Text.Trifecta
import Data.ByteString.Char8()

main :: IO ()
main = parseTest p "hello"
where p = do
string "h"
(_ :~ s) <- spanned $ string "ello"
warnAt [] "Fix this" $ render $ Fixit s "should be OMFGLOLOL"
```

When run it gives this output:

$ runghc trifecta.hs
(interactive):1:2: warning: Fix this
hello
~~~~
should be>
()

You would normally expect the fixit string to be as long as necessary.