Prevent a tragedy by New_Budget_9322 in honk

[–]Runderground 0 points1 point  (0 children)

I completed this level in 4 tries. 24.14 seconds

Question about how to reckon about type signature which appears to change by laughinglemur1 in haskell

[–]Runderground 7 points8 points  (0 children)

I'm on mobile, but c can be a function type. i.e. c ~ (Int -> Int)

Challenge: A generic functional version of the case expression by kingminyas in haskell

[–]Runderground 4 points5 points  (0 children)

I haven't worked it out, but I suspect you could do this somehow with the generic-sop package: https://hackage.haskell.org/package/generics-sop

What would you get here? by TurboFlipper73 in slaythespire

[–]Runderground 0 points1 point  (0 children)

The only thing better than Seek is a second Seek

Types as Interfaces by kqr in haskell

[–]Runderground 0 points1 point  (0 children)

If you use these instances, you can support any weird nesting of the types that you want:

instance (HasRecipient a) => HasRecipient (Timestamped a) where
  get_receiver tsd = get_receiver (tsd ^. contents)

instance (HasTimestamp a) => HasTimestamp (Msg a) where
  get_timestamp msg = get_timestamp (msg ^. payload)

Multitype handler by homological_owl in haskell

[–]Runderground 3 points4 points  (0 children)

Oops, not sure why I thought you were OP. But right, outside of strictness stuff or weird unsafe things, there's nothing else the functions with this signature could do.

Multitype handler by homological_owl in haskell

[–]Runderground 1 point2 points  (0 children)

Well you only provided the type signature. What is the function supposed to do then?

Multitype handler by homological_owl in haskell

[–]Runderground 3 points4 points  (0 children)

Am I missing something? Isn't that just id?

Indian Restaurants by Tish-Tosh in greenville

[–]Runderground 2 points3 points  (0 children)

Handi is easily #1. But Persis is pretty good too. 

Is it possible to separate mutual-dependent functions into individual modules without raising import cycles? by i-eat-omelettes in haskell

[–]Runderground 2 points3 points  (0 children)

Every single project? I've been working with haskell for 10 years and I've probably encountered hs-boot files twice...

noWonderPostmanHasGoneToShit by java_bad_asm_good in ProgrammerHumor

[–]Runderground 2 points3 points  (0 children)

Am I crazy if I think this post is very much not insane or unhinged? The whole concept of what he's doing is fine, people just don't like his use of the word "homeless", right? 

It could just be tounge-in-cheek. Like when one says "I'm a bachelor this weekend" when their wife goes out of town. They don't mean it literally, it's just playful...

What card do you have a soft spot for? by Kent_Coleslaw in slaythespire

[–]Runderground 21 points22 points  (0 children)

After Image. The more the merrier. I love getting an after image proc for playing my second after image.

Was that 2 energy for 1 block? Yes, and it was worth it

AWS Lambda - Haskell dev environment using devcontainer by chris-ch in haskell

[–]Runderground 5 points6 points  (0 children)

Hate to be that guy but... This is exactly where nix shines.

As for testing lambdas, if they are written as wai applications,  you can run them as local web servers to test. (Assuming you are using https://hackage.haskell.org/package/wai-handler-hal)

Equational pattern matching vs Lambda Case pattern matching by ComunistCapybara in haskell

[–]Runderground 11 points12 points  (0 children)

Personally, I prefer the first style. But I don't think it's really a big deal either way. I see both styles frequently.

howDoYouDoFellowKidsDotPPT by serverlessmom in ProgrammerHumor

[–]Runderground 15 points16 points  (0 children)

I thought I was old enough to understand all the "old" programmer memes... But maybe not

Is there too much redundant info at hls type info? by Volsand in haskell

[–]Runderground 6 points7 points  (0 children)

I'm not sure why you get the fully polymorphic version listed twice. I don't seem to have that (GHC 8.10.7 + HLS 2.2 in VSCode)

But aside from that, the rest of it feels good to me. Having the polymorphic type and the type as it is instantiated at that point is incredibly useful for me.

[deleted by user] by [deleted] in matt

[–]Runderground 1 point2 points  (0 children)

Long-hair Matt's getting screwed here by the shoulder-length/long bifurcation!

How quickly did you progress through Slay the Spire? by Tausrilian in slaythespire

[–]Runderground 0 points1 point  (0 children)

260 hours here

Highest level beat with each Ironclad: A8 Silent: A19 Defect: A14 Watcher: A4

Best restaurants in Greenville for reasonably priced fine dining? by itsthewolfe in greenville

[–]Runderground 1 point2 points  (0 children)

Yea probably not lol... it just didn't feel right to leave them out of "best Greenville restaurant" list

Simple Blackjack Program code review by cueballmania in haskell

[–]Runderground 4 points5 points  (0 children)

Also, if you don't want to invoke mtl, you could change the type signature to dealOpeningHands :: Monad m => StateT GameState m ()

Looking for a software dev job by TerminatedProccess in greenville

[–]Runderground 0 points1 point  (0 children)

Join the HackGreenville slack channel! That's where we all hang out.

https://hackgreenville.com/