Fix a use of ‘undefined’
commit6ab534f48c9b82284b7926fc92147663d095c078
authorMark Karpov <mark.karpov@tweag.io>
dateTue 7 Jan 2020, 16:37 (7 years ago)
parent6f7c9de
src/Ormolu/Printer/Meat/Declaration/Value.hs+1−1
@@ -1324,7 +1324,7 @@ isRecordDot op (RealSrcSpan ySpan) = case op of
13241324 HsVar NoExt (L (RealSrcSpan opSpan) opName) ->
13251325 isDot opName && (srcSpanEndCol opSpan == srcSpanStartCol ySpan)
13261326 _ -> False
1327−isRecordDot _ _ = undefined
1327+isRecordDot _ _ = False
13281328
13291329-- | Check whether a given 'RdrName' is the dot operator.
13301330isDot :: RdrName -> Bool