Build failures in wai-logger-2.1.0 to 2.3.5 due to missing bounds on fast-logger
Closed this issue · 0 comments
sjakobi commented
v2.2.5 and older were failing with
Network/Wai/Logger.hs:78:41:
Ambiguous occurrence ‘LogStdout’
It could refer to either ‘Network.Wai.Logger.LogStdout’,
defined at Network/Wai/Logger.hs:101:16
or ‘System.Log.FastLogger.LogStdout’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:114:31:
Ambiguous occurrence ‘LogType’
It could refer to either ‘Network.Wai.Logger.LogType’,
defined at Network/Wai/Logger.hs:100:1
or ‘System.Log.FastLogger.LogType’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:116:18:
Ambiguous occurrence ‘LogNone’
It could refer to either ‘Network.Wai.Logger.LogNone’,
defined at Network/Wai/Logger.hs:100:16
or ‘System.Log.FastLogger.LogNone’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:117:19:
Ambiguous occurrence ‘LogStdout’
It could refer to either ‘Network.Wai.Logger.LogStdout’,
defined at Network/Wai/Logger.hs:101:16
or ‘System.Log.FastLogger.LogStdout’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:118:19:
Ambiguous occurrence ‘LogFile’
It could refer to either ‘Network.Wai.Logger.LogFile’,
defined at Network/Wai/Logger.hs:104:16
or ‘System.Log.FastLogger.LogFile’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:119:19:
Ambiguous occurrence ‘LogCallback’
It could refer to either ‘Network.Wai.Logger.LogCallback’,
defined at Network/Wai/Logger.hs:108:16
or ‘System.Log.FastLogger.LogCallback’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:226:13:
Ambiguous occurrence ‘LogType’
It could refer to either ‘Network.Wai.Logger.LogType’,
defined at Network/Wai/Logger.hs:100:1
or ‘System.Log.FastLogger.LogType’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:227:10:
Ambiguous occurrence ‘LogNone’
It could refer to either ‘Network.Wai.Logger.LogNone’,
defined at Network/Wai/Logger.hs:100:16
or ‘System.Log.FastLogger.LogNone’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:228:11:
Ambiguous occurrence ‘LogStdout’
It could refer to either ‘Network.Wai.Logger.LogStdout’,
defined at Network/Wai/Logger.hs:101:16
or ‘System.Log.FastLogger.LogStdout’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:229:11:
Ambiguous occurrence ‘LogFile’
It could refer to either ‘Network.Wai.Logger.LogFile’,
defined at Network/Wai/Logger.hs:104:16
or ‘System.Log.FastLogger.LogFile’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
Network/Wai/Logger.hs:230:11:
Ambiguous occurrence ‘LogCallback’
It could refer to either ‘Network.Wai.Logger.LogCallback’,
defined at Network/Wai/Logger.hs:108:16
or ‘System.Log.FastLogger.LogCallback’,
imported from ‘System.Log.FastLogger’ at Network/Wai/Logger.hs:60:1-28
v2.2.6 and newer were failing with errors like
Network/Wai/Logger.hs:107:10:
A pattern match on a GADT requires the GADTs or TypeFamilies language extension
In the pattern: LogNone
In an equation for ‘logCheck’: logCheck LogNone = return ()
As a Hackage trustee I have created some revisions that should prevent users from encountering these errors.
See e.g.
- https://hackage.haskell.org/package/wai-logger-2.2.5/revisions/
- https://hackage.haskell.org/package/wai-logger-2.2.6/revisions/
This issue is just for your information.