Hi,
I am looking for a way to declare type alias in where section.
where
type Columns = '["start_ts", "rule_id", "rule_version", "matched", "ack"]
joinedColumnNames :: String
joinedColumnNames = symbolVal (Proxy @(JoinWith ", " Columns))
columns :: Proxy Columns
columns = Proxy
As far as I know type
cannot be in where
, though I hope it is possible to bind a list of symbols to a type variable somehow.
I don’t want to put type alias above the class instance, because it contains lots of code.