Comments (6)
I'm not sure about the read/show stuff. I like read/show, but it seems like maybe they don't really belong in CorePrelude.
I do agree with the rest of these, though.
from basic-prelude.
Some things that might be nice:
Data.Ord.ordering
Data.Char.is*
from basic-prelude.
Ooh, and maybe Data.Function.on
from basic-prelude.
I agree with @singpolyma about read/show stuff. I like everything else @DanBurton mentioned, and also like ordering
and on
. I'm on the fence, however, with the is*
functions. It's definitely convenient, but may be encouraging a bad practice (treating textual data one character at a time, which isn't always Unicode-aware).
from basic-prelude.
I've added $!
, seq
, curry
, until
, asTypeOf
, undefined
, on
, comparing
, and equating
to CorePrelude.
I was under the impression that Data.Ord.ordering
existed, and functioned like its maybe
and either
counterparts, but apparently it does not. Should we add it?
ordering :: a -> a -> a -> Ordering -> a
ordering lt eq gt o = case o of
LT -> lt; EQ -> eq; GT -> gt
The type Ordering
is already exported.
from basic-prelude.
I can't say I've ever been writing code where I wanted a function like ordering
, so it doesn't seem very generally useful to me. I'd go further and say it's problematic: it's far too easy to swap the lt
and eq
arguments, for example, as opposed to maybe
and either
, where the types will (generally) prevent you from making such a mistake.
from basic-prelude.
Related Issues (20)
- Export Arrow combinators HOT 7
- empty clashes with Control.Applicative HOT 5
- Export `printf` for `Text`
- Export `Data.Text.Encoding` HOT 4
- Export IOError in CorePrelude HOT 1
- Restrict to packages portable across GHCs?
- CorePrelude doesn't export any instances for LText and LByteString HOT 3
- Extended Kleisli combinators HOT 3
- Better exception handling HOT 8
- Export IsList HOT 2
- Lazy versions don’t export instances HOT 2
- Export Foldable and Traversable HOT 10
- Text version of error? HOT 10
- `asum` missing HOT 7
- ‘show’ is not a (visible) method of class ‘Show’ HOT 4
- Provided ``sum`` is not general enough HOT 4
- Export `for`, `for_`, `traverse_` and `sequenceA_` HOT 1
- Generalize `concat`, `concatMap` and `intercalate`? HOT 5
- Strict `minimum`, `maximum`, `minimumBy` and `maximumBy`? HOT 2
- `MonadIO` for all read*, get* and put*? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basic-prelude.