Summary of Effect Libraries
Since the spago.dhall
file does not allow me to explain what each dependency does, I've offloaded that to the table below. These are not all of the Effects that exist. For example, I did not cover Avar
, Aff
, and others (see the full list on Pursuit here. Not all of the Effects
found on there are truly Effect
s as they might be newtypes for something else). Rather, they give you something to use as you learn more and more of Purescript and FP concepts:
Library | Included Module | Usage |
---|---|---|
purescript-effect | Effect | Provides the Effect type itself. |
purescript-console | Effect.Console | Provides bindings to the Console |
purescript-random | Effect.Random | Type used to create random values |
purescript-now | Effect.Now | Get current Date/Time from machine. (Note: see the date-time repo for additional related functions) |
purescript-js-timers | Effect.Timer | Bindings to low-level JS API: set/clearTimeout and set/clearInterval |
purscript-refs | Effect.Ref | Global mutable state |
purscript-st | Control.Monad.ST | Local mutable state |