haskell-webapps icon indicating copy to clipboard operation
haskell-webapps copied to clipboard

Potentially missing imports?

Open chrissound opened this issue 8 years ago • 1 comments

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 #-}

chrissound avatar Jun 13 '17 15:06 chrissound

hlint starterApp/Main.hs complians about missing of MultiParamTypeClasses

p-alik avatar Jul 18 '17 06:07 p-alik