Created
February 2, 2020 05:07
-
-
Save coord-e/b3df989179af5fb05ab2347b25c83872 to your computer and use it in GitHub Desktop.
モジュール名をパスに合わせる(Haskell)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for file in $(find . -name '*.hs' | grep src/); do sed -i 's/^module .*$/module '$(sed -e 's/.*src\/\(.*\)\.hs/\1/g' <<< "$file" | tr '/' '.')'/' $file; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment