Comments (6)
"They're more like guidelines, than actual rules" - Captain Barbossa.
Yeah that's a problem. Also, yay first issue from the internet! ;)
I'll try a few solutions and see which one involves the least amount of backflips from a user point of view.
from waargonaut.
It seems I introduced an unnecessary complication, as replicate
simply won't for negative inputs.
λ> replicate (-3) 'a'
""
λ> replicate 3 'a'
"aaa"
I don't see a huge problem in making that type Int
to match the replicate
type.
from waargonaut.
doesn't actually enforce that a number is natural via the type system
FWIW, this library does.
https://hackage.haskell.org/package/natural
from waargonaut.
Also,
from waargonaut.
Oh that's a very cool package, thanks for pointing it out. Hadn't thought of optics for this at all, and waargonaut
depends on lens
anyway.
from waargonaut.
All useful libraries depend on lens
:)
from waargonaut.
Related Issues (20)
- Waargonaut.Decode.either's document or implementation maybe wrong HOT 1
- CommaSeparated's _Empty Prism doesn't obey Prism law
- Default / example parser? HOT 2
- Restrictive upper bounds for generics-sop-0.40.1 HOT 2
- Encoder mapLikeObj API thoughts HOT 1
- Uppercase HeXDigit's aren't interpreted correctly
- JSON unicode strings should be parsed into... well, unicode.
- Help: What is the best way to encode optional fields? HOT 5
- Help: Prettier HOT 3
- Changing compiler via nix doesn't apply overlays
- Upgrade to latest hw-json
- documentation incorrect
- _optionsFieldName is called twice when generating an encoding using Waargonaut.Generic.gEncoder HOT 1
- Fix CI for GHC 8.0.2 HOT 1
- ByteString.Char8 encoder HOT 6
- GHC 8.10 support? HOT 2
- Nix build is stale HOT 4
- Not available in Stackage
- Conversion of Scientific to JNumber computes an incorrect exponent
- Still not available on Stackage
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 waargonaut.