Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

List comprehension allows non-linear use of linear arguments
## Summary When using list comprehensions it is possible to use non-linearly (both dropping and duplicating) an argument marked as linear. ## Steps to reproduce Create a file with the following content: ```haskell {-# LANGUAGE LinearTypes #-} module Main where main :: IO () main = do print $ duplicateArg "foo" print $ dropArg "bar" duplicateArg :: a %1 -> [a] duplicateArg x = [x | _ <- [1..2]] dropArg :: a %1 -> [a] dropArg x = [x | _ <- []] ``` Compile as usual with `ghc -o output <file>.hs`. ## Expected behavior The code should throw an error and not compile. The error should be that GHC could not match type `Many` with `One` arising from multiplicity of `x`. ## Environment * GHC version used: error confirmed to be present in both `9.4.8` and `9.10.1`
issue