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: Linear types are not supported when using GHC's FFI functionality
4
+
severity: error
5
+
introduced: 9.6.1
6
+
---
7
+
8
+
If the extension `LinearTypes` is enabled, then programmers can write expressions which have the linear
9
+
function type `a %1 -> b` for functions which use their argument exactly once.
10
+
When calling external functions via GHC's FFI functionality, however, then it is not allowed to use a linear function type.
11
+
12
+
More information about this specific restriction can be found in the discussion in the [GHC issue tracker](https://gitlab.haskell.org/ghc/ghc/-/issues/18472).
0 commit comments