Skip to content

Commit

Permalink
Update modNameChunksText to match modNameToText behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Jan 23, 2025
1 parent 9e50047 commit 02f5f91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Cryptol/Utils/Ident.hs
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ modNameChunksText (ModName x fl) = unfoldr step x
(a,b)
| T.null b -> Just (maybeAnonText fl str, b)
| otherwise -> Just (a,T.drop (T.length modSep) b)
modNameChunksText (ModMain _) = panic "modNameChunksText"
["Cannot get chunks of main module name"]
modNameChunksText (ModMain _) = ["Main"]

-- | Break up a module name on the separators, `String` version
modNameChunks :: ModName -> [String]
Expand Down

0 comments on commit 02f5f91

Please sign in to comment.