ndmitchell / ghcid

Very low feature GHCi based IDE
Other
1.13k stars 114 forks source link

Allow eval multiline commands #319

Closed akrmn closed 4 years ago

akrmn commented 4 years ago

The idea here is to extend --allow-eval to allow comments like

{- $>
data Foo = Bar | Baz
  deriving (Generic, Eq, Ord, Show)
<$ -}

to be picked up as commands by ghcid. The effect should be the same as typing

:{
data Foo = Bar | Baz
  deriving (Generic, Eq, Ord, Show)
:}

in a ghci session.

ndmitchell commented 4 years ago

Thanks, looks good. I've released 0.8.7 with this patch.