简体   繁体   English

如何在Mac中打开haskell文件(.hs)?

[英]How can I open a haskell file (.hs) in Mac?

I already installed haskell from here . 我已经从这里安装haskell I can use haskell from my terminal by typing ghci but I don't know how to open my .hs files. 我可以在终端中输入ghci来使用haskell,但我不知道如何打开.hs文件。

They are just normal text files; 它们只是普通的文本文件。 use whichever text editor you use for other languages. 使用您用于其他语言的任何文本编辑器。

If you want to load it into ghci , use :l file.hs or :load file.hs 如果要将其加载到ghci ,请使用:l file.hs:load file.hs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果打开命令不起作用并且隐藏文件未在 mac 中打开,我如何编辑 bash_profile - How can I edit bash_profile if open command does not work and hidden file does not open in mac 如何在Mac OS X上使用Haskell捕获屏幕? - How can I capture the screen with Haskell on Mac OS X? “这种类型的文件可能会损害您的计算机无法保留选项” - 没有“保留”选项? macOS HS - “This type of file can harm your computer mac no keep option” - No “Keep” option? macOS HS 如何在Mac OS X上使用photoshop在滤镜插件中打开文件? - How can I use photoshop to open a file in filter plugin at Mac OS X? 如何在Mac OS中使用Java打开chm文件? - How do i open a chm file with java in mac os? 如何在Mac上的Python中打开TextEdit中的文本文件? - How do I open a text file in TextEdit from Python on Mac? 无法在Mac OS HS 10.13.2上运行JACK - Can't run JACK on Mac OS HS 10.13.2 如何在Mac OS X 10.6.3上编译Open CL? - How can I compile Open CL on Mac OS X 10.6.3? 如何在Mac上打开QMenu时动态添加动作? - How can I dynamically add actions to a QMenu while it is open on a Mac? 如何将源文件加载到Haskell(ghci)? - How can I load a source file into Haskell (ghci)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM