Skip to content

Commit

Permalink
Fix remove of app and src
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Feb 7, 2024
1 parent c27430c commit a28ddfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process_file_haskell.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ fn process_file_haskell(mut dep &DependencyGraph) ! {
name.drop(1)
}
if 'src' in name {
name.drop(name.index('src'))
name.drop(name.index('src') + 1)
}
if 'app' in name {
name.drop(name.index('app'))
name.drop(name.index('app') + 1)
}
name[name.len - 1] = name.last().all_before_last(os.file_ext(name.last()))
dep.name << name
Expand Down

0 comments on commit a28ddfb

Please sign in to comment.