Initial support for adding body from signature

This commit is contained in:
Alejandro Serrano
2014-06-10 21:34:05 +02:00
parent cedf59ace7
commit 323c1b5471
6 changed files with 104 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ module Language.Haskell.GhcMod.Gap (
, errorMsgSpan
, typeForUser
, nameForUser
, occNameForUser
, deSugar
, showDocWith
, GapThing(..)
@@ -354,6 +355,13 @@ nameForUser = pprOccName . getOccName
nameForUser = pprOccName False . getOccName
#endif
occNameForUser :: OccName -> SDoc
#if __GLASGOW_HASKELL__ >= 708
occNameForUser = pprOccName
#else
occNameForUser = pprOccName False
#endif
deSugar :: TypecheckedModule -> LHsExpr Id -> HscEnv
-> IO (Maybe CoreExpr)
#if __GLASGOW_HASKELL__ >= 708