Skip to content

Data Declaration Ambiguity #1

@mxswd

Description

@mxswd

What do you do in the case of in data definitions when you have a long name and a deriving clause?

data HttpException
    = InvalidStatusCode Int
    | MissingContentHeader
    deriving Show

or

data HttpException
    = InvalidStatusCode Int
    | MissingContentHeader
      deriving Show

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