Skip to content

Potentially missing imports? #66

@chrissound

Description

@chrissound

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions