Skip to content

Commit

Permalink
Add haskell support to languages.go (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
srijan-paul committed Jun 19, 2024
1 parent db69fde commit c6eea33
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions internal/code/languages.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const (
Swift = "swift"
Dart = "dart"
V = "v"
Scala = "scala"
Scala = "scala"
Haskell = "haskell"
)

// Languages is a map of supported languages with their extensions and commands
Expand Down Expand Up @@ -120,8 +121,12 @@ var Languages = map[string]Language{
Extension: "v",
Commands: cmds{{"v", "run", "<file>"}},
},
Scala: {
Extension: "sc",
Commands: cmds{{"scala-cli", "run", "<file>"}},
},
Scala: {
Extension: "sc",
Commands: cmds{{"scala-cli", "run", "<file>"}},
},
Haskell: {
Extension: "hs",
Commands: cmds{{"runghc", "<file>"}},
},
}

0 comments on commit c6eea33

Please sign in to comment.