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

WIP: Add stub of JavaScript target #109

Merged
merged 19 commits into from
Apr 21, 2017
Merged

Conversation

Kroisse
Copy link
Contributor

@Kroisse Kroisse commented Mar 10, 2017

야 신 난 다

@Kroisse Kroisse changed the title Add stub of JavaScript target WIP: Add stub of JavaScript target Mar 10, 2017
@Kroisse Kroisse force-pushed the javascript-target branch from 9c6e975 to 8ab0f6b Compare March 11, 2017 03:36
@dahlia dahlia mentioned this pull request Mar 12, 2017
2 tasks
Copy link
Member

@dahlia dahlia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I'm aware that it's working in progress, I left some comments.

@@ -135,6 +144,7 @@ test-suite spec
, nirum
, parsec
-- only for dealing with htoml's ParserError
, pretty >=1.1.3 && <2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As aeson,aeson-pretty and pretty are common dependencies to library and test-suite spec, it'd better omit version specifies here.

@@ -0,0 +1,84 @@
{-# LANGUAGE FlexibleInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, TypeOperators #-}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep shorter than 80 columns for each line.

toJavaScriptFilename :: ModulePath -> [FilePath]
toJavaScriptFilename mp =
case mp of
ModulePath { .. } ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simply match this by ModulePath {} ->.

| i <- toList path
]
++ [ f moduleName ]
ModuleName { .. } ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.



compileModule :: Module -> CodeBuilder ()
compileModule Module {..} = do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kroisse added a commit to Kroisse/nirum that referenced this pull request Apr 20, 2017
@dahlia dahlia merged commit ae89537 into nirum-lang:master Apr 21, 2017
@dahlia dahlia added the cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) label Aug 26, 2017
@dahlia dahlia added the target label Aug 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants