on master help sign in
Add 'will break at runtime in GHCJS' warning

Fixes #79. The warning is only displayed when the module is used in an app compiled with GHCJS.

commit24ccb5de8d712c8531aa43084bd9946a1750ab6b authorJon Chase <code.cyrbon@gmail.com> dateSun 17 Jan 2016, 22:27 (11 years ago) parent176c1fb
1 file changed+4
Data/Yaml.hs+4
Data/Yaml.hs+4
@@ -16,7 +16,11 @@
1616--
1717-- For documentation on the @aeson@ types, functions, classes, and
1818-- operators, please see the @Data.Aeson@ module of the @aeson@ package.
19+#if (defined (ghcjs_HOST_OS))
20+module Data.Yaml {-# WARNING "GHCJS is not supported yet (will break at runtime once called)." #-}
21+#else
1922module Data.Yaml
23+#endif
2024 ( -- * Types
2125 Value (..)
2226 , Parser