[Haskell-beginners] Is it possible to check list length at compile time?

Marcin Mrotek marcin.jan.mrotek at gmail.com
Tue Mar 17 23:00:48 UTC 2015


I think you're looking for dependend types or refinement types. It's
sort of possible in Haskell, but look into Agda, Idris, F#, and this
thread: http://www.reddit.com/r/haskell/comments/2z5l9y/question_type_system_and_ndimensional_vectors/

Best regards,
Marcin Mrotek


More information about the Beginners mailing list