Why does MIN_VERSION_GLASGOW_HASKELL not work in GHC 9.2?

Per GHC guide we expect the MIN_VERSION_GLASGOW_HASKELL(x,y,z,z') CPP to work on the corresponding GHC version. However, the following fails to compile on GHC 9.2

#if MIN_VERSION_GLASGOW_HASKELL(9,2,1,0)

enter image description here

What's happening here?


To resolve this, I find myself using:

#if MIN_VERSION_base(4,16,0)

But why would MIN_VERSION_GLASGOW_HASKELL not work?



from Recent Questions - Stack Overflow https://ift.tt/umJrpUQ
https://ift.tt/MxeJQ45

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation