You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[@DrBoolean - Thank you. Great content and (for my taste) an eminently readable style. It is rare for technical book to make me chuckle.]
In Chapter 8 I am battling to figure out how connectDb has a type of Config -> Either(Error, IO(DbConnection)) given that Postgres.connect only has a type of Url -> DbConnection.
How does the DbConnection become an IO(DbConnection) ?
Am I confused or is there an IO.for missing somewhere ?
The text was updated successfully, but these errors were encountered:
Hi
[@DrBoolean - Thank you. Great content and (for my taste) an eminently readable style. It is rare for technical book to make me chuckle.]
In Chapter 8 I am battling to figure out how
connectDb
has a type ofConfig -> Either(Error, IO(DbConnection))
given thatPostgres.connect
only has a type ofUrl -> DbConnection
.How does the
DbConnection
become anIO(DbConnection)
?Am I confused or is there an
IO.for
missing somewhere ?The text was updated successfully, but these errors were encountered: