Skip to content

Writing Type signatures and cryptic type errors #175

@harendra-kumar

Description

@harendra-kumar

I am finding the type errors very cryptic and hard to fix, though once you get the hang of it, it becomes better. But when you are starting out with this library its a big pain.

Also, can there be a better way of writing type signatures, e.g. GHC prints this for one case:

    Top-level binding with no type signature:
      buildResource :: (Monad m7, Monad m6, Monad m5, Monad m4, Monad m3,
                        Monad m2, Monad m1) =>
                       ResourceTable
                       -> m1 (m2 (Maybe (m2 Int32))
                              :<> (m3 (Maybe (m3 Text))
                                   :<> m7 (Maybe
                                             (m4 (m5 [m5 (m5 Text :<> m5 [m5 Text])]
                                                  :<> m6 [m6 Text])))))

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