You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: The linear function type is used, but LinearTypes are not enabled
4
+
severity: error
5
+
introduced: 9.6.1
6
+
---
7
+
8
+
Starting with version 9.0, GHC supports linear types.
9
+
These types allow the programmer to express how often the argument to a function is used in the function body.
10
+
For this reason, a new function type `a %1 -> b` has been introduced which stands for *linear* functions which use their argument of type `a` exactly once.
11
+
In order to use these functions, however, the extension `LinearTypes` has to be enabled.
0 commit comments