Open cdepillabout opened 9 years ago
FYI there is work for split
on #69.
Added support for ghc-mod sig
.
I also tried to support ghc-mod refine
, but I couldn't find how to use it.
module Refine where
filterNothing :: [Maybe a] -> [a]
filterNothing xs = _body
ghc-mod refine Refine.hs Refine 4 20 filter
outputs nothing. Could you show me a working example?
I'm using https://github.com/kazu-yamamoto/ghc-mod/tree/4b2be9c9edbd377c3d95b6685ab53e7c5270edea compiled with GHC 7.10.1.
I think your usage is correct. Using this hello-world like repo, and ghc-mod refine src/main.hs Main 4 20 filter
, I get this:
4 20 4 25 "filter _body_1 _body_2"
All that stuff is broken with 7.10 ATM. See https://github.com/kazu-yamamoto/ghc-mod/issues/438
ghcmod added support for
split
,sig
, andrefine
commands. This is similar to the functionality available in Idris and Agda plugins.split
: https://github.com/kazu-yamamoto/ghc-mod/pull/274sig
: https://github.com/kazu-yamamoto/ghc-mod/pull/274refine
: https://github.com/kazu-yamamoto/ghc-mod/issues/311