kakkun61.com
@[email protected]

πŸ‘€ Rust-style Attribute Macro in Haskell, using GHC 10 Modifiers Extension - Show and Tell - Haskell Community https://discourse.haskell.org/t/rust-style-attribute-macro-in-haskell-using-ghc-10-modifiers-extension/14726

discourse.haskell.org

Rust-style Attribute Macro in Haskell, using GHC 10 Modifiers Extension

As a long-time Haskeller writing Rust in production, I always miss the powerful Template Haskell macros - Rust’s macro system is rather ad-hoc and weaker than Haskell (it fails to handle hygienity properly, and, crucially, lacks reification mechanism at all!). But there has always been one thing that I miss one Rust macro mechanism in Haskell: attribute macros. They are so powerful when combined with their (macro-based) deriving mechanism, as one can use it to control the deriving strategy in ...

Sep 28, 2026, 1:09 PM