BSD-3-Clause licensed by Chris Done
Maintained by [email protected]
This version can be pinned in stack with:fay-base-,1415
Depends on 2 packages(full list with versions):
Used by 1 package in nightly-2018-09-28(full list with versions):



This package exports Prelude, FFI and other modules which you probably want to use with Fay.

Anything essential for using the compiler, or modules exported by GHC’s base can go in this package.


Changelog (2018-03-09)

  • fay support (2017-08-02)

  • Changed the definition of splitOn from Char -> Text -> [Text] to Text -> Text -> [Text] to make it more general and to match text:Data.Text.splitOn. Thanks to A. Bram Neijt! (2015-06-24)

  • Fix polymorphic arguments in Data.Var (thanks Jakub Ryška) (2015-02-10)

  • Changes the type signature of when and unless from :: Bool -> Fay a -> Fay () to :: Bool -> Fay () -> Fay (). This allows tail call optimization for these functions and matches base - by Zachary Mason (2015-01-05)

  • Allow fay 0.22.*. (2014-10-25)

  • Merged fay-base into the main fay repository.

0.19.4 (2014-10-21)

  • Fix type signature of Data.Text.pack.
  • Add IsString instance for Text for using the ffi with RebindableSyntax enabled.

0.19.3 (2014-10-21)

  • Lots of additions adding the following modules:
    • Data.Var - Mutable variables, Reactive variables, and reactive signals
    • Unsafe.Coerce
    • Data.Text (fay-text will be updated to reuse this module)
    • Data.Time
    • Data.Ord, Data.Function, Data.Maybe, Data.List, Data.Either
    • Data.Defined and Data.Nullable
    • Data.Mutex - Simple mutexes
    • Control.Exception
    • Data.LocalStorage
    • Data.MutMap - Mutable maps (2014-10-11)

  • Allow fay 0.21

0.19.2 (2014-07-29)

  • Remove the Base.Ord constraint from Ord so new Ord instances can be added. Note that you cannot use a custom implementation of the methods, JavaScript’s native operators are used for comparisons. (2014-04-29)

  • Allow fay 0.20 (2014-04-07)

  • Fix compilation on GHC 7.8

0.19.1 (2014-03-13)

  • Add Data.Char

0.19 (2014-01-14)

  • Ord instance for Integer
  • Export base versions of Maybe, Ordering, and Either instead of redefining when compiling with GHC. This helps when writing libraries targeting both Fay and GHC
  • Prelude: Add void, >=> and <=<, unless, forM, mapM
  • Add Debug.Trace module exporting trace and traceShow


  • Upper bound to the latest major Fay version (2013-09-24)

  • Fixed implementation of >> and >>= (this bug didn’t affect normal usage)
  • Add fail
  • Generalize type signatures for fromIntegral and fromInteger (2013-08-27)

  • The type signature of FFI.ffi has been generalized to IsString s => s -> a to support RebindableSyntax.
  • Prelude now exports ifThenElse as a default for RebindableSyntax (2013-08-05)

  • Added more Ratio functions and move them all into Data.Ratio