Skip to content

Commit

Permalink
Fixing non total function
Browse files Browse the repository at this point in the history
  • Loading branch information
tmspzz committed Sep 9, 2016
1 parent 2a172e2 commit 7b3b8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ deriveFrameworkNameAndVersion :: M.Map GitRepoName [FrameworkName] -> CartfileE
deriveFrameworkNameAndVersion romeMap (CartfileEntry GitHub l v) = map (\n -> (n, v)) $ fromMaybe [gitHubRepositoryName] (M.lookup gitHubRepositoryName romeMap)
where
gitHubRepositoryName = last $ splitWithSeparator '/' l
deriveFrameworkName romeMap (CartfileEntry Git l v) = map (\n -> (n, v)) $ fromMaybe [gitRepositoryName] (M.lookup gitRepositoryName romeMap)
deriveFrameworkNameAndVersion romeMap (CartfileEntry Git l v) = map (\n -> (n, v)) $ fromMaybe [gitRepositoryName] (M.lookup gitRepositoryName romeMap)
where
gitRepositoryName = getGitRepositoryNameFromGitURL l
getGitRepositoryNameFromGitURL = replace ".git" "" . last . splitWithSeparator '/'
Expand Down

0 comments on commit 7b3b8e3

Please sign in to comment.