1. 29 Aug, 2024 3 commits
    • Alfredo Di Napoli's avatar
      review: prefer newtypes for Queue and TimeoutS · 6da18f77
      Alfredo Di Napoli authored
      Consider using newtypes for `Queue` and `TimeoutS`, for obvious reasons.
      Also, use `Text` as an internal representation for `Queue`, as `String`
      is just a list in disguise and thus quite slow in its cons-snoc semantic
      (unlike `Text`, which efficiently represent textual data). `Text` also
      supports UTF-16, which might be preferrable in some situations.
      
      The use of DerivingStrategies makes it possible to print and render
      queues in a "smart" way, for example:
      
        putStrLn $ show $ T.unpack $ _Queue (Queue "foo")
        putStrLn $ show (Queue "foo")
      
      They both output "foo", without the intermediate `Queue` constructor one
      would get by normal (stock) derivation.
      6da18f77
    • Alfredo Di Napoli's avatar
      review: HasBroker -> MessageBroker · b28b51a9
      Alfredo Di Napoli authored
      This commit renames the typeclass HasBroker into MessageBroker. The
      `Has*` pattern is used in the context of mtl-style monadic stacks, where
      we have "capabilities". Here we want to express a property of a concrete
      type, so `MessageBroker` better encapsulate that.
      b28b51a9
    • Przemyslaw Kaminski's avatar
      [tests] fix Message type · 5331554f
      Przemyslaw Kaminski authored
      5331554f
  2. 21 Aug, 2024 2 commits
  3. 20 Aug, 2024 1 commit
  4. 24 Jul, 2024 1 commit
  5. 23 Jul, 2024 2 commits
  6. 22 Jul, 2024 4 commits