Skip to content

Commit 0161991

Browse files
authored
Merge pull request #325 from fullstack-development/middle-1-haskell-more-questions-on-functors
middle-1/haskell Add more questions about functor variance
2 parents 1d3235b + d3e053f commit 0161991

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

backend/middle-1/haskell.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Functors
66
* What is covariance and contravariance in the context of functors and category theory?
77
* What are the negative and positive positions?
8+
* What types can be both covariant functors and contravariant?
9+
* What are invariant functors?
810
* Contrafunctor (Contravariant functor)
911
* What is the signature of `contramap` function?
1012
* Make an example of instance definition for some ADT.
@@ -46,11 +48,17 @@
4648

4749
## Types
4850

49-
* What is a cardinality?
51+
* What is cardinality?
52+
* What is the notion of isomorphism when we are talking about types?
53+
* Should isomorphic types have the same cardinality?
54+
55+
#### Exercises
56+
57+
* [Kata - isomorphism](https://www.codewars.com/kata/isomorphism)
5058

5159
#### Resources
5260

53-
TODO: add resources
61+
* [Cardinality of a Set](https://math24.net/cardinality-set.html)
5462

5563
## Polymorphic Kinds
5664

@@ -121,6 +129,7 @@ How can we bundle Pattern Synonyms with datatypes in export and import lists?
121129
#### Resources
122130

123131
* [Laziness from What I Wish I Knew When Learning Haskell](http://dev.stephendiehl.com/hask/#laziness)
132+
* [The GHC Runtime System - Ch. 4 Laziness](http://ezyang.com/jfp-ghc-rts-draft.pdf)
124133

125134
## Exceptions
126135

0 commit comments

Comments
 (0)