[Haskell-cafe] ghc-mod split feature

Alejandro Serrano Mena trupill at gmail.com
Sun Jan 11 10:06:35 UTC 2015


Dear Tobias,
When calling "split" in GHC, you should point at the beginning of the
variable you want to split on.
In this case, try using

$ ghc-mod split src/Foo.hs Foo 47 3

instead. This should make it work :)

2015-01-03 23:25 GMT+01:00 Tobias Pflug <tobias.pflug at gmx.net>:

> Hi,
>
> i just wanted to try some of the ghcmod features that I haven't used
> before in order to hopefully add them to my vim haskell workflow somehow.
>
> What I apparently can't get to work is the split command:
>
>  $ ghc-mod split src/Foo.hs Foo 47 7
>
> which points to exactly the code listed in the ghc-mod help:
>
>   f :: [a] -> a
>   f x = _
>
> It does however not yield any output at all. Am I missing something
> obvious here ? I'm using version 5.2.1.1
>
> Thanks,
> Tobi
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20150111/1140c148/attachment.html>


More information about the Haskell-Cafe mailing list