Skip to content

warnings for missing type signatures #2

@henrylaxen

Description

@henrylaxen

Hi Michael,
When I use $(makeLenses ''AnswerMap) I get warnings like:

Top-level binding with no type signature:
  unAnswerMap :: Functor f =>
                 (IM.IntMap (Map PlayerId Answer)
                  -> f (IM.IntMap (Map PlayerId Answer)))
                 -> AnswerMap -> f AnswerMap

I tried adding a type signature before the makeLenses, but GHC complains:

The type signature for ‘unAnswerMap’ lacks an accompanying binding

I like to write my code so that it compiles without warnings. I know I could turn the off with

{-# OPTIONS_GHC -fno-warn-missing-signatures #-}

but I would rather not. Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions