Skip to content

Consider dropping unsafe global variable? #5

@MichaelXavier

Description

@MichaelXavier

Hi! I have a colleague learning Haskell and Servant and they were following this guide as a template and they copied use of unsafe{Perform,Interleave}IO for the global variable and it got me thinking this may be the wrong message to be sending to people using owlcloud to learn. Its pretty easy to throw the TVar in a Reader and initialize it in IO in Main. I haven't checked how much work it would be but would you take a PR to eliminate this global?

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