Posts by unclechu@mastodon.social
 (DIR) Post #A12fjQ8gCZeo5UNZtQ by unclechu@mastodon.social
       2020-11-10T03:11:50Z
       
       0 likes, 0 repeats
       
       @hyperrealgopher Next level would be to combine patterns with guards.But most importantly you should try ViewPatterns extension, this may blow your mind off.P.S. You can remove all the parenthesis you added to the code from your post.
       
 (DIR) Post #A1Em2BCh5v3kVOTopc by unclechu@mastodon.social
       2020-11-15T23:18:05Z
       
       0 likes, 0 repeats
       
       @MatejLach Any links to the source?
       
 (DIR) Post #A3w4NxbWgpbXBNb5Ps by unclechu@mastodon.social
       2021-02-04T16:16:54Z
       
       0 likes, 0 repeats
       
       @commagray Applejack?
       
 (DIR) Post #A3wU7GexYAvxlHRli4 by unclechu@mastodon.social
       2021-02-04T17:48:20Z
       
       1 likes, 0 repeats
       
       @alice Actually I see this technique of using an empty type class for the first time whereas I’ve seen regular type synonyms with Constraint kind many many times. I think the latest is better since it doesn’t and couldn’t bring anything new while a type class can technically have a lot of different stuff inside, types, functions, values, type families, data families, whatever. You have to look at the class to tell if it’s just a combination of other constraints or something more.
       
 (DIR) Post #A3wVIDtuFRNSLQE4SO by unclechu@mastodon.social
       2021-02-04T21:17:16Z
       
       1 likes, 0 repeats
       
       @lnxw37a2 @alex@gleasonator.com @JoYo I think “false bottom” as well as local encryption are even more important.
       
 (DIR) Post #A41d7vWij2D0xLwOnY by unclechu@mastodon.social
       2021-02-07T08:44:55Z
       
       0 likes, 0 repeats
       
       @hyperrealgopher Within 10 mins:foldl (\acc x -> maybe acc ((acc <>) . pure . fmap (succ . length)) $ uncons x) [] (group "aaaabbbcca")
       
 (DIR) Post #A41dIFsTuptOyB2oZU by unclechu@mastodon.social
       2021-02-07T08:46:47Z
       
       0 likes, 0 repeats
       
       @hyperrealgopher Within 10 mins:foldl (\acc x -> maybe acc ((acc <>) . pure . fmap (succ . length)) $ uncons x) [] (group "aaaabbbcca")And I wouldn’t use `head` since it’s a partial function.
       
 (DIR) Post #A41fA70fCdRz3d7H4i by unclechu@mastodon.social
       2021-02-07T08:52:08Z
       
       0 likes, 0 repeats
       
       @hyperrealgopher Another one without a fold:(fmap . fmap) (succ . length) . catMaybes . fmap uncons . group $ "aaaabbbcca"
       
 (DIR) Post #A4IfCk7tnLYRCCfv9s by unclechu@mastodon.social
       2021-02-15T13:57:01Z
       
       0 likes, 0 repeats
       
       #horse #mastohorses
       
 (DIR) Post #A4mTTUYky1hlUlu5Y0 by unclechu@mastodon.social
       2021-03-01T23:08:03Z
       
       1 likes, 0 repeats
       
       @allison #NixOS of course.
       
 (DIR) Post #A89dSf29FvA6uaeV4C by unclechu@mastodon.social
       2021-06-10T20:21:08Z
       
       0 likes, 1 repeats
       
       @commagray nah, “gentah” is not good enough to compete with NixOS, lol.
       
 (DIR) Post #A8BP73ec1jqzrEMst6 by unclechu@mastodon.social
       2021-06-11T17:22:46Z
       
       0 likes, 0 repeats
       
       @hyperrealgopher pay attention for providing stack traces. See for HasCallStack constraint (from GHC.Stack module in “base” package).
       
 (DIR) Post #A8BWP0NncwzcbV0cTI by unclechu@mastodon.social
       2021-06-11T16:50:22Z
       
       0 likes, 0 repeats
       
       @commagray by the way, here is systemd-free #NixOS: https://gitea.redalder.org/Magic_RB/NixNG
       
 (DIR) Post #A8L55O4x3teD7eDI5A by unclechu@mastodon.social
       2021-06-16T09:24:56Z
       
       0 likes, 1 repeats
       
       @hyperrealgopher pay attention to <nixpkgs>, it’s taken from your local system setup. If you want to have true reproducibility then you would pin it one way or another to a particular commit. You can always ask more questions in #nix:nixos.org (in #Matrix).
       
 (DIR) Post #A8NKtmQqg8belBrXaS by unclechu@mastodon.social
       2021-06-17T11:32:04Z
       
       0 likes, 0 repeats
       
       @iooioio @hund There is systemd-free #NixOS variant in fact:https://gitea.redalder.org/Magic_RB/NixNG
       
 (DIR) Post #A8VhrkagPF5MgF8vqK by unclechu@mastodon.social
       2021-06-21T12:27:07Z
       
       0 likes, 0 repeats
       
       @ashwinvis Nix is a really simple language, which suits functional paradigm and laziness perfectly well. I don’t know about Guile and how it works, it’s another language I would have to learn. For me, as a Haskell developer, Nix was pretty intuitive to just read and write, I only had to look for a couple of nuances in the docs. For me personally it’s Guile which would be a barrier to start.
       
 (DIR) Post #AEAT3A5m7r5pHShgqu by unclechu@mastodon.social
       2021-12-07T17:44:47Z
       
       0 likes, 0 repeats
       
       @drq Well, #Nix and #NixOS make it even better. It was never so easy to contribute a package to the repository (which is literally a Git repository). The package gets built automatically and binary cache populated. And the maintenance cost is very low.
       
 (DIR) Post #AEATXnBnKPGDE37oNk by unclechu@mastodon.social
       2021-12-07T17:50:18Z
       
       0 likes, 0 repeats
       
       @drq Could you describe steps for each you have to go through in order to add a new package to the repository?
       
 (DIR) Post #AEAUKxuWFs6WfPUZGK by unclechu@mastodon.social
       2021-12-07T17:59:12Z
       
       0 likes, 0 repeats
       
       @drq > I see somebody using Nix, it's always something isn't workingI only hear this from someone who doesn’t use Nix. For me it’s like a horror you tell kids to make them behave good.For me it was working from the beginning. And it was doing what I wanted (actually I wanted something like Nix for years before I even get to know it exists). And it was working for me for around 2 years already. Since now you saw me, you can remove “always” from your notes.
       
 (DIR) Post #AEAUcU0QBA6j8CbcEi by unclechu@mastodon.social
       2021-12-07T18:02:22Z
       
       0 likes, 0 repeats
       
       @drq Oof, that list is big. For Nix and NixOS it is just this:1. Clone the https://github.com/NixOS/nixpkgs2. Write mostly JSON-like config for your app (a random example https://github.com/NixOS/nixpkgs/blob/808a8f52dce6e33270ab00472810687dbcca2eca/pkgs/applications/networking/instant-messengers/psi-plus/default.nix )3. Make a merge request