Skip to content

Commit

Permalink
go throws run-time error
Browse files Browse the repository at this point in the history
  • Loading branch information
paldepind committed Feb 2, 2019
1 parent 5c0dd70 commit e31a17d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function bind<M extends FlatMap<any>>(a: M): FlatMapValue<M> {
}

export function go<A extends FlatMap<any>>(f: (b: typeof bind) => A): A {
return undefined as any;
throw new Error(
"go should never be called at run-time. Ensure that you have configured go-notation correctly."
);
}

export default transformer;

0 comments on commit e31a17d

Please sign in to comment.