[GHC] #11990: Custom Type Error not getting triggered in the nested Type function call