Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. instance {-# OVERLAPPING #-} (Validatable' r, KnownSymbol s) => Validatable' (MetaX s r) where
  2. form' = M1 <$> (fieldName DIG..: form')
  3. where
  4. fieldName = pack $ symbolVal (Proxy :: Proxy s)
  5.  
  6. instance {-# OVERLAPPABLE #-} (Validatable' r) => Validatable' (M1 i a r) where
  7. form' = M1 <$> form'
  8.  
  9. instance (Validatable' r, Validatable' s) => Validatable' (r :*: s) where
  10. form' = (:*:) <$> form' <*> form'
  11.  
  12. -- all other instances as before
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement