You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data Variable = Variable {
length :: !Word32,
var :: !ByteString,
tree :: !Word8
} deriving (Generic, Binary, Show)
but I need the var to be a static length of course. What's the recommended way to do this? Arrays? DataKinds types? Smart constructors on custom types?
I was starting with:
but I need the
varto be a static length of course. What's the recommended way to do this? Arrays? DataKinds types? Smart constructors on custom types?Ta