Created
March 18, 2019 09:45
-
-
Save mizunashi-mana/72b043cfbf63d3996ef7474922fb484d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE DerivingVia #-} | |
{-# LANGUAGE StandaloneDeriving #-} | |
module MayBreakDerivingVia where | |
import Control.Monad.Trans.Reader | |
newtype T m a = T (Int -> m a) | |
deriving via (ReaderT Int m) instance Functor m => Functor (T m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment