Data.Vector & Data.Text in base
. I wouldn’t say in Prelude because of the API clashes.
If cabal and stack by default depended on text
and vector
, and even by default set a custom prelude that exposed Text
and Vector
APIs rather than String
ones wouldn’t that have the same effect?
Uuuuh, as a cabal maintainer I would like to first make sure that you sign a contract with your own blood before implementing such a thing within cabal.
Other languages do it very well without dirty hacks in their package managers, why not us?
Why does this require changes to base
?
base
ought to promote a non-Show
way of printing a representation of its data structures.
cf: Display in Rust or the difference between the Inspect
and String.Chars
in Elixir, one for pretty-printing data structures and the other to provide the to_string
method.
Do you want type LinkedList = []
, or something more?
Actually I want type LinkedList = GHC.List.List
, just like bytestring
got the StrictByteString
alias (cf: Strictness and laziness ergonomics · Issue #375 · haskell/bytestring · GitHub)