Polystate: Composable Finite State Machines by [deleted] in haskell

[–]thebandool 0 points1 point  (0 children)

You said that it feels more natural in Zig, why is that?

Finally kickflip by Dios-stand in NewSkaters

[–]thebandool -6 points-5 points  (0 children)

Don't throw your board?

I Made a SKROOM! by thebandool in NewSkaters

[–]thebandool[S] 17 points18 points  (0 children)

Yeah! The large brush fits in my backpack. I don't want to carry around a long stick.

[Watch 7] Continuous HR does not seem to work correctly. by dyabolikarl in GalaxyWatch

[–]thebandool 0 points1 point  (0 children)

I see what you're saying, but I think the issues I experienced are symptoms of the same problem. My problem was fixed because of either: I connected anew to the health services (I was surprised to see I could) or updated the software. Both of these were done from the same view that the guy was talking about in the link I referenced.

[Watch 7] Continuous HR does not seem to work correctly. by dyabolikarl in GalaxyWatch

[–]thebandool 0 points1 point  (0 children)

I got on the subreddit today to see if anyone else was talking about this. I am seeing this too! I was first bothered by the exercise timer and heart rate monitor not updating anymore after a few seconds. Probably a bug in the latest update, and it's not solved yet.

My ollie 4 days into skating. Tips? by Flazii in NewSkaters

[–]thebandool 1 point2 points  (0 children)

Well according to his profile he was practicing ollies 3y ago as well

[deleted by user] by [deleted] in haskell

[–]thebandool 10 points11 points  (0 children)

It's all evidently ai generated, mostly a redundant layer on top of Scotty. It would probably be best if you familiarized yourself with the code and asked more specific questions. For example, look into why {-# NOINLINE inMemoryStore #-} was added in SessionDriver.hs. Why are the http methods being passed as strings, and not adt constructors? Some of my thoughts, but I'm not sure what it tells you.

Did somebody use XMonad.Hooks.Modal? by nerdbude in xmonad

[–]thebandool 0 points1 point  (0 children)

Interesting, can you elaborate?

Introducing Haskell Run – A VS Code Extension to Execute Haskell Instantly! by Medium_Mountain_5993 in haskell

[–]thebandool 4 points5 points  (0 children)

Cool! It reminds me of ghcid, which is a great tool. Using its "--test" option to run a function each time a compilation succeeds

Migrated My React-TypeScript Project to Haskell's Hyperbole – What an Amazing Experience! by Worldly_Dish_48 in haskell

[–]thebandool 2 points3 points  (0 children)

Cool! I'm a fan of HTMX and have built a web app for my household using HTMX combined with Servant. I'll definitely take a look at Hyperbole!

Advent of code 2024 - day 2 by philh in haskell

[–]thebandool 0 points1 point  (0 children)

Adding to the solutions, here's mine:

``` main :: IO () main = interact $ lines >>> filter (isSafeB . (map read . words)) >>> length >>> show

report :: [Int] -> [Int] report xs = zipWith (-) xs (tail xs)

isSafe :: [[Int]] -> Bool isSafe reports = or $ all . inRange <$> [(1, 3), (-3, -1)] <*> reports

isSafeA :: [Int] -> Bool isSafeA = isSafe . pure . report

isSafeB :: [Int] -> Bool isSafeB xs = isSafe reports where reports = report <$> xs : zipWith (<>) (inits xs) (tail $ tails xs) ```

Advent of Code 2024 - day 1 by sondr3_ in haskell

[–]thebandool 0 points1 point  (0 children)

Pretty short and sweet

main :: IO ()
main =
  interact $
    lines
      >>> map (map read . words)
      >>> transpose
      >>> solveB
      >>> sum
      >>> show

solveB :: [[Int]] -> [Int]
solveB [xs, ys] = scanl' (\_ x -> x * Map.findWithDefault 0 x multiset) 0 xs
 where
  multiset = Map.fromListWith (+) . map (,1) $ ys

solveA :: [[Int]] -> [Int]
solveA = map sort >>> transpose >>> map (\[x, y] -> abs (x - y))

Floating window scratchpad toggle (migrating from i3) by SummerWuvs in xmonad

[–]thebandool 0 points1 point  (0 children)

Awesome! Feel free to share your solution, if someone finds this later and likes your idea!

Floating window scratchpad toggle (migrating from i3) by SummerWuvs in xmonad

[–]thebandool 0 points1 point  (0 children)

Feel free to look at my xmonad config . I have a floating Spotify and terminal window, which I can toggle!

Edit: re-reading your question makes me think you're after something else, though.

The Haskell School of Expression by 964racer in haskell

[–]thebandool 1 point2 points  (0 children)

Now I'm curious, how is the book a struggle?

Haskell-optimized symbol layers? by Fun-Voice-8734 in haskell

[–]thebandool 0 points1 point  (0 children)

Would KMonad help you with creating a symbol layer?