summaryrefslogtreecommitdiff
path: root/src/Data/Name.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/Name.hs')
-rw-r--r--src/Data/Name.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data/Name.hs b/src/Data/Name.hs
index 647c285..faf8d8c 100644
--- a/src/Data/Name.hs
+++ b/src/Data/Name.hs
@@ -84,7 +84,7 @@ readNameFML t = T.map (\c -> if c == '~' then ' ' else c) <<$>>
[] -> empty
(f:xs) -> case unsnoc xs of
Nothing -> empty
- Just (m, l) -> pure $ Name f l $ case m of
+ Just (m, l) -> pure $ Name l f $ case m of
[] -> Nothing
_ -> Just $ T.unwords m