I've got the following minimal usecase which errors out because it doesn't realise that (Min (n+1) n ~ n)
I'm developing a library based on your plugins and this is quite an obstacle at the moment.
{-# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise
-fplugin GHC.TypeLits.Extra.Solver #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
module Bug where
import Data.Proxy
import GHC.TypeLits
import GHC.TypeLits.Extra
x :: Proxy n -> Proxy (Min (n+1) n)
x = id
I've got the following minimal usecase which errors out because it doesn't realise that
(Min (n+1) n ~ n)
I'm developing a library based on your plugins and this is quite an obstacle at the moment.