Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build base SASS stylesheet #10

Open
boj opened this issue Aug 29, 2017 · 0 comments
Open

Build base SASS stylesheet #10

boj opened this issue Aug 29, 2017 · 0 comments

Comments

@boj
Copy link
Member

boj commented Aug 29, 2017

https://hackage.haskell.org/package/hsass

From https://codinginfinity.me/post/2015-07-12/hlibsass_and_hsass

import Control.Monad      ((>=>))
import System.Environment (getProgName, getArgs)
import Text.Sass

main :: IO ()
main = do
    progName <- getProgName
    args <- getArgs
    case args of
        (f:_) -> compile f
        _     -> putStrLn $ "Usage: " ++ progName ++ " FILE"

compile :: FilePath -> IO ()
compile file = do
    result <- compileFile file def
    either (errorMessage >=> putStrLn) putStrLn result
@boj boj added this to the v0.1.0 milestone Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant