Open
Description
For instance, when rendering a floating-point number, it is desired to specify the precision manually.
For instance, we can allow writing it like
myText = [int||My value is #f[3]{ value }|]
To avoid breaking changes (and also for the user's simplicity) we can require something different than rmode'xxx :: RMode
, e.g. have a special mode with parameters:
newtype ParamRMode (ps :: [Type]) (a :: Type) = ParamRMode
{ renderWithModeAndParams :: HLint ps -> a -> Builder
}
parametrized :: RMode a -> ParamRMode ps a
And maybe we should also allow for named parameters? But not in this iteration I guess.