tomland
tomland copied to clipboard
Implement 'Selective' instance for 'Codec'
trafficstars
tomland users may want to support parsing that depends on version. Since we don't have Monad instance anymore, it's not possible easily. But the selective package has a function bindS that allows having this case ... of behavior for Enum fields (which is how I expect versions to be implemented).