2 releases

0.1.2 Mar 7, 2023
0.1.1 Mar 5, 2023
0.1.0 Mar 5, 2023

#3 in #can-t

MIT/Apache

8KB
83 lines

Family - I can't believe it's not HKT!

⚠️ This crate's any module uses unsafe code that has not been properly audited for soundness.

A small family pattern implementation, implementing "associated type constructors". Additionally provides some dynamic casting utilities that make use of families and members.

See this post for more information: http://smallcultfollowing.com/babysteps/blog/2016/11/03/associated-type-constructors-part-2-family-traits/

Crates

  • Crates.io docs.rs

License

Licensed under either of

at your option.


lib.rs:

I can't believe it's not HKT!

A small family pattern implementation, implementing "associated type constructors". Additionally provides some dynamic casting utilities that make use of families and members.

See this post for more information: http://smallcultfollowing.com/babysteps/blog/2016/11/03/associated-type-constructors-part-2-family-traits/

Dependencies

~1.5MB
~37K SLoC