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
Would it make sense to have instances for NonEmpty Array and NonEmpty List?
instanceencodeJsonNonEmptyArray :: (EncodeJsona) =>EncodeJson (NonEmptyArraya) where
encodeJson (NonEmpty h t) = encodeJson $ cons h t
instanceencodeJsonNonEmptyList :: (EncodeJsona) =>EncodeJson (NonEmptyLista) where
encodeJson (NonEmpty h t) = encodeJson $ cons h (toUnfoldable t)