CS SYD - Announcing weeder-nix
Reddit » Haskell
by /u/NorfairKing2
19m ago
submitted by /u/NorfairKing2 [visit reddit] [comments ..read more
Visit website
Hiding type constructor of record type does not prevent construction when fields are exposed?
Reddit » Haskell
by /u/ngruhn
19m ago
Let's say I have a record type like data PosInt = PosInt { getInt :: Int } and I want to maintain some invariance about it. Here, that the wrapped Int is always positive (I know in this example I could also use a newtype but bear with me). So (I guess?) the standard approach would be to not expose the type constructor, so only the current module can construct instances of type PosInt. However, I still want to give read access to the wrapped Int, so I want to expose getInt. I might end up with something like: module Lib ( PosInt(getInt), setInt) where data PosInt = PosInt { getInt :: Int ..read more
Visit website
Oleg's gists - A note about coercions
Reddit » Haskell
by /u/Iceland_jack
12h ago
submitted by /u/Iceland_jack [visit reddit] [comments ..read more
Visit website
[Serokell Blog] Work on GHC: Dependent Types, part 3
Reddit » Haskell
by /u/Serokell
1d ago
We made a lot of progress on our journey since the last report. All new features bring us closer to Dependent Haskell, naturally, but most of them are useful in their own right. You can read our update here: https://serokell.io/blog/ghc-dependent-types-in-haskell-3 As always, we made sure to include code examples for all user-facing changes to showcase the new syntax. ​ submitted by /u/Serokell [visit reddit] [comments ..read more
Visit website
Haskell Weekly - Issue 417
Reddit » Haskell
by /u/RecognitionDecent266
1d ago
submitted by /u/RecognitionDecent266 [visit reddit] [comments ..read more
Visit website
[Well-Typed] Improvements to the ghc-debug terminal interface
Reddit » Haskell
by /u/adamgundry
2d ago
submitted by /u/adamgundry [visit reddit] [comments ..read more
Visit website
Issues downloading Haskell
Reddit » Haskell
by /u/FewGLoco
3d ago
I downloaded Xcode on advice but know not what to do with it. Installation may take a while. [ Info ] verifying digest of: ghc-9.4.8-aarch64-apple-darwin.tar.xz [ Info ] Unpacking: ghc-9.4.8-aarch64-apple-darwin.tar.xz to /Users/marleys/.ghcup/tmp/ghcup-35622ce44eacd505 [ Info ] Installing GHC (this may take a while) [ ghc-configure ] not found (too old?) [ ghc-configure ] checking for gcc... gcc [ ghc-configure ] checking whether the C compiler works... no [ ghc-configure ] configure: error: in `/Users/marleys/.ghcup/tmp/ghcup-35622ce44eacd505/ghc-9.4.8-aarch64-apple-darwin': [ ghc-configure ..read more
Visit website
Haskell in engineering production
Reddit » Haskell
by /u/Francis_King
5d ago
I've been reading Production Haskell (Matt Parson). I want to use Haskell in my current position in an engineering consultancy.. I write simulations of traffic flows. I would like to ask, please, what sort of engineering projects are a good match for Haskell? submitted by /u/Francis_King [visit reddit] [comments ..read more
Visit website
Folding Cheat Sheet #4 - For functions that can be defined both as an instance of a right fold and as an instance of a left fold, one may be more efficient than the other. Let's look at the example of a function 'decimal' that converts a list of digits into the corresponding decimal number.
Reddit » Haskell
by /u/philip_schwarz
5d ago
https://fpilluminated.com/deck/212 submitted by /u/philip_schwarz [visit reddit] [comments ..read more
Visit website
What are effects?
Reddit » Haskell
by /u/appendThyme
5d ago
Functional programming has come up with very interesting ways of managing 'effects'. But curiously I haven't found an explicit definition of what is meant by this word. Most of the time it seems interchangeable with 'monad'. I also have the impression is that the word 'effect' is used when talking about managing a program's control flow. Is it the case that effects are about control flow? Are all effects representable with monads, and do all monads potentially model effects? submitted by /u/appendThyme [visit reddit] [comments ..read more
Visit website

Follow Reddit » Haskell on FeedSpot

Continue with Google
Continue with Apple
OR