Skip to content

Commit

Permalink
Add a fundep which is needed when using nested calls of genericAdaptor
Browse files Browse the repository at this point in the history
  • Loading branch information
toelli-msft committed Jan 31, 2018
1 parent 856d8fb commit b8635f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Data/Profunctor/Product/Internal/Adaptor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
Expand Down Expand Up @@ -109,7 +110,7 @@ type instance GUnzip z (K1 i c) = K1 i (Project z c)
type instance GUnzip z (M1 i c f) = M1 i c (GUnzip z f)

-- | Adaptors over generic representations of types.
class Profunctor p => GAdaptor p f where
class Profunctor p => GAdaptor p f | f -> p where
gAdaptor :: f a -> p (GUnzip 'Fst f a) (GUnzip 'Snd f a)

instance
Expand Down

0 comments on commit b8635f8

Please sign in to comment.