https://github.com/chadtech/prelude-elm
https://github.com/chadtech/prelude-elm
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/chadtech/prelude-elm
- Owner: Chadtech
- License: bsd-3-clause
- Created: 2019-08-04T13:43:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T18:10:21.000Z (almost 7 years ago)
- Last Synced: 2025-02-16T07:42:05.877Z (over 1 year ago)
- Language: Haskell
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# Prelude Elm
My opinion is that the Haskell prelude is not that good. I think a lot of people agree. Fewer people- but still some- would agree with me, that functions like `fmap` and typeclasses like `Functor` are not that good. I would like an Elm-like experience in Haskell, with tokens like `Maybe.map` and `Io.andThen`.
So I set out to remake `elm/core` in Haskell.
But it turns out you cannot re-export modules in Haskell.
```haskell
-- Maybe.hs
module Maybe
( map
) where
-- PreludeElm.hs
module PreludeElm
( module Maybe
)
where
import qualified Maybe
-- Main.hs
import PreludeElm
Maybe.map
-- ^ Error! `Maybe` doesnt exist in this namespace
```
Having to manually import all these things in Haskell where they are implicitly imported in Elm is a bit of a bummer. So I am giving up on this project for now.