Skip to content

Commit

Permalink
IORef this binding problems solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Legenhausen authored and gcanti committed Feb 13, 2020
1 parent caff0d3 commit b8bc804
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/IORef.ts
Expand Up @@ -18,6 +18,8 @@ export class IORef<A> {
readonly read: IO<A>
constructor(private value: A) {
this.read = () => this.value
this.write = this.write.bind(this)
this.modify = this.modify.bind(this)
}
/**
* @since 2.0.0
Expand Down

0 comments on commit b8bc804

Please sign in to comment.