FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

`<-` support in PSCi · Issue #2628 · purescript/purescript · GitHub

<- support in PSCi #2628

Description

In GHCi, we can bind an IO result into a name with <-.

> a <- return "hello" :: IO String
> a
"hello"
> :t a
a :: String

In PSCi, we can surely use unsafePerformEff, but I think it may be handy to support <- too.

> let eff = pure "hello" :: forall e. Eff e String
> let a = unsafePerformEff eff
> b <- eff

I'm thinking about implementing this, but first I'd like to hear some ideas about this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL