haskell-webapps
haskell-webapps copied to clipboard
Potentially missing imports?
Thanks for the tutorial first of all!
I'm following through with the tutorial and at this line: https://github.com/vacationlabs/haskell-webapps/blame/master/doc/docs/opaleye/basic-db-mapping.rst#L108
we have $(makeAdaptorAndInstance "pTenant" ''TenantPoly) however makeAdaptorAndInstance does not appear to be imported.
Is this from Data.Profunctor.Product.TH?
I'm guessing we also need:
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
hlint starterApp/Main.hs complians about missing of MultiParamTypeClasses