Does #Haskell's microlens-platform
really not have a function of type Int -> Lens' [a] a
?
That seems an odd omission.
Has anyone successfully cross-compiled a #Haskell project to .exe from a *NIX system (preferably Debian)? I've casually looked into it in the past, but never given it a serious try.
Jeremy List likes this.
I'm of the understanding that it can perhaps be done with Haskell.nix?
Edit: typo
I hate it when I make an official release of a program with an ugly snippet of code that I can't figure out how to write more cleanly, only to come up with a solution 10 minutes after pushing the release. I just make the change in the dev branch so it gets incorporated into the next version.
In my defense, the thing I was overlooking was that #Haskell's Maybe
type is an instance of Foldable
. It's not the kind of data type that exactly screams Foldable
, is it?
Side note: I should use Hoogle's search by type signature feature more frequently. I needed a function that looked like this: Monad m => (a -> m ()) -> Maybe a -> m ()
, which is literally just mapM_
.
like this
Boyd Stephen Smith Jr. likes this.
!Haskell Users Group (unofficial)
So, I created a #Haskell #TUI program using brick. I wanted to have it support cursor keys, as well as vim and Emacs-style cursor movement, but for whatever reason I can't get it to register C-n
and C-p
keypresses. C-f
and C-b
worked fine though.
Anyone have any ideas as to why this might be?
The repository is at: git.fingerprintsoftware.ca/jla…
like this
reshared this
data Foo = Bar { val :: Int } | Baz { val :: Int }
is valid #Haskell. I wouldn't have thought you could define
val
twice like that.Jeremy List likes this.
Jeremy List likes this.
I'm an idiot.
I was trying to install #Haskell on a machine and thought the installer was taking a really long time. In my defense, the last line of text was:
Installation may take a while.
It sat at this stage for over an hour while I did other stuff, because I hadn't bothered to read the previous line:
Press ENTER to proceed or ctrl-c to abort.
like this
Jonathan Lamothe likes this.
It's actually annoying in ghci because the warning gets repeated every time you define something.
--pedantic
flag though (which turns warnings into errors).Jeremy List likes this.
like this
Jonathan Lamothe
in reply to Jonathan Lamothe • •ix
.Boyd Stephen Smith Jr. likes this.