We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91c4da4 commit 6cc0d72Copy full SHA for 6cc0d72
src/Language/Fortran/Analysis/Types.hs
@@ -509,9 +509,9 @@ getExprRecordedType _ = pure Nothing
509
510
-- Set the idType annotation
511
setIDType :: Annotated f => IDType -> f (Analysis a) -> f (Analysis a)
512
-setIDType ty x
513
- | a@Analysis {} <- getAnnotation x = setAnnotation (a { idType = Just ty }) x
514
- | otherwise = x
+setIDType ty x =
+ let a = getAnnotation x
+ in setAnnotation (a { idType = Just ty }) x
515
516
-- Get the idType annotation
517
getIDType :: (Annotated f, Data a) => f (Analysis a) -> Maybe IDType
0 commit comments