Skip to content

WIP: Derive Ghc, GhcT, GHCi, FlatM, TcS instances via ReaderT.

Icelandjack requested to merge Icelandjack/ghc:via into master

Deriving instances for GHCi via ReaderT (among other instances):

{-# LANGUAGE DerivingVia #-}

..

newtype GHCi a = GHCi { unGHCi :: IORef GHCiState -> Ghc a }
    deriving
        (Functor, Applicative, Monad)
    via
        ReaderT (IORef GHCiState) Ghc
Edited by Ben Gamari

Merge request reports