Skip to content

Build errors with aeson-2 #54

@sjakobi

Description

@sjakobi

When I build authenticate-1.3.5 with aeson-2.0.1.0, I get the following errors:

Web/Authenticate/BrowserId.hs:36:35: error:
    • Couldn't match type ‘Data.Aeson.KeyMap.KeyMap Value’
                     with ‘Map.HashMap k0 Value’
      Expected type: Map.HashMap k0 Value
        Actual type: aeson-2.0.1.0:Data.Aeson.Types.Internal.Object
    • In the second argument of ‘Map.lookup’, namely ‘o’
      In the expression: Map.lookup "status" o
      In the expression: (Map.lookup "status" o, Map.lookup "email" o)
   |
36 |         case (Map.lookup "status" o, Map.lookup "email" o) of
   |                                   ^

Web/Authenticate/BrowserId.hs:36:57: error:
    • Couldn't match type ‘Data.Aeson.KeyMap.KeyMap Value’
                     with ‘Map.HashMap k1 Value’
      Expected type: Map.HashMap k1 Value
        Actual type: aeson-2.0.1.0:Data.Aeson.Types.Internal.Object
    • In the second argument of ‘Map.lookup’, namely ‘o’
      In the expression: Map.lookup "email" o
      In the expression: (Map.lookup "status" o, Map.lookup "email" o)
   |
36 |         case (Map.lookup "status" o, Map.lookup "email" o) of
   |                                                         ^

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