Skip to content

Core lint error with deferred type holes

The following program (note the -dcore-lint)

{-# Options_GHC -dcore-lint -fdefer-typed-holes #-}

import Prelude hiding ((.))

class Functor' f where
  map' :: (a -> b) -> f a -> f b

class Bifunctor' f where
  map2' :: (a -> b) -> f a c -> f b c

bimap' :: Bifunctor' f => (a -> b) -> (c -> d) -> (f a c -> f b d)
bimap' f g = map2' f . map'

produces a *** Core Lint errors : in result of Desugar (after optimization) ***, more information in attached the log.

Edited by Icelandjack
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information