Skip to content

Commit ed36764

Browse files
authored
Add haskell support to languages.go
1 parent db69fde commit ed36764

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

internal/code/languages.go

+10-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ const (
3434
Swift = "swift"
3535
Dart = "dart"
3636
V = "v"
37-
Scala = "scala"
37+
Scala = "scala"
38+
Haskell = "haskell"
3839
)
3940

4041
// Languages is a map of supported languages with their extensions and commands
@@ -120,8 +121,12 @@ var Languages = map[string]Language{
120121
Extension: "v",
121122
Commands: cmds{{"v", "run", "<file>"}},
122123
},
123-
Scala: {
124-
Extension: "sc",
125-
Commands: cmds{{"scala-cli", "run", "<file>"}},
126-
},
124+
Scala: {
125+
Extension: "sc",
126+
Commands: cmds{{"scala-cli", "run", "<file>"}},
127+
},
128+
Haskell: {
129+
Extension: "hs",
130+
Commands: cmds{{"runghc", "<file>"}},
131+
},
127132
}

0 commit comments

Comments
 (0)