File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -128,21 +128,21 @@ How can we bundle Pattern Synonyms with datatypes in export and import lists?
128
128
## Laziness
129
129
130
130
* Describe the process of evaluating a thunk and storing the evaluated value.
131
- * After a thunk is fully evaluated, will the GHC runtime evaluate it again?
131
+ * After a thunk is fully evaluated, can the GHC runtime evaluate it again?
132
132
* What is a black hole and what problem does it solve?
133
- * What kind of thunks are black holes used for ?
134
- * Enumerate cases where a thunk returning an ADT will be evaluated.
133
+ * For what kind of thunks are black holes used?
134
+ * Enumerate cases where a thunk returning an ADT is evaluated.
135
135
* What is an irrefutable pattern and how does it work?
136
136
* Where are patterns in Haskell irrefutable by default?
137
137
* Which patterns are irrefutable:
138
138
1 . ` f (Just a) = ... `
139
139
1 . ` let (Just a) = ... `
140
140
1 . ` where (Just a) = ... `
141
- 1 . ` g (MyType a) = ... ` where ` MyType ` is a ` newtype ` declaration .
142
- 1 . ` g (MyType a) = ... ` where ` MyType ` is a ` data ` declaration .
141
+ 1 . ` g (N a) = ... ` where ` newtype N a = N a ` .
142
+ 1 . ` g (D a) = ... ` where ` data D a = D a ` .
143
143
1 . ` f a = ... `
144
144
1 . ` f _ = ... `
145
- * When can irrefutable patterns be helpful ? Hint: you may describe why
145
+ * When can irrefutable patterns be useful ? Hint: you may describe why
146
146
[ ` Data.List.partition ` ] ( https://hackage.haskell.org/package/base-4.16.0.0/docs/src/Data.OldList.html#partition )
147
147
uses them.
148
148
* What does the ` sprint ` command do in ` ghci ` ?
You can’t perform that action at this time.
0 commit comments