Andy Melnikov (nponeccop) wrote,
Andy Melnikov
nponeccop

Зачем нужен GADT с одним конструктором?

А вот зачем! Я не знал, что так можно:
data FoldableContainer a where
  F :: Foldable f => f a -> FoldableContainer a
Tags: fp, programming
Subscribe

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 24 comments