Skip to content

need instance for Bool #6

@mwotton

Description

@mwotton

instance CasType Bool where
encodeCas i = runPut $ putWord8 (if i then 1 else 0)
decodeCas i = 1 == runGet getWord8 i

perhaps there's a better way, I'm not sure.

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