Skip to content

A simple sh script to build a basic vs-code workspace suitable for Haskell projects using the cabal build tool. It contains a minimal sample app, a little bit of sample code and a few tests.

Notifications You must be signed in to change notification settings

jan-abt/vscode-haskell-cabal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

vscode-haskell-cabal

A sh script to build a basic vs-code workspace suitable for Haskell projects using the Cabal build tool.
It contains a minimal sample app, with little bit of code and a few tests.

usage

./vscode-haskell-cabal.sh "your-project" "your name" "[email protected]"

if permission settings prevent you from executing the script, change them.

chmod +x vscode-haskell-cabal.sh

Once the project has been generated and built and you are finding that you have trouble adding or modifying files,
check your user-id, e.g. id , then group affiliations via groups
and finally use that info to change the ownership of all files and folders under the root dir over to you, recursively.

   sudo chown -R <user-name>:<group> .

Cabal File contents:

cabal-version:      3.0
name:               sample-project
version:            0.1.0.0
synopsis:           Synopsis of your-project
license:            MIT
license-file:       LICENSE
author:             You
maintainer:         [email protected]
build-type:         Simple
extra-doc-files:    CHANGELOG.md

common common-all
    ghc-options: -Wall -fwarn-tabs
    default-language: GHC2021
    build-depends:    base ^>=4.18.1.0 && < 5,
                      Cabal ^>=3.10.2.1
    
library
    import:           common-all
    exposed-modules:  Lib, Doodles
    hs-source-dirs:   src
    build-depends:    hspec ^>= 2.11.7,
                      QuickCheck ^>= 2.14.3,
                      checkers ^>=0.6.0 
                
executable monad-transformers
    import:           common-all
    main-is:          Main.hs
    other-modules:    Lib, Doodles
    hs-source-dirs:   app, src
    build-depends:    hspec ^>= 2.11.7,
                      QuickCheck ^>= 2.14.3

test-suite test-app
    import:           common-all
    other-modules:    Lib
    type:             exitcode-stdio-1.0
    main-is:          TestSuite.hs
    hs-source-dirs:   src, test
    build-depends:    hspec ^>= 2.11.7,
                      QuickCheck ^>= 2.14.3


About

A simple sh script to build a basic vs-code workspace suitable for Haskell projects using the cabal build tool. It contains a minimal sample app, a little bit of sample code and a few tests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages