Skip to content

Commit

Permalink
added binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakobeha committed Mar 31, 2019
1 parent 0d1d145 commit 3968791
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ stack install treescript

```

<!--ts-->
<!--te-->

## Purpose

TreeScript is a DSL for writing code to analyze and transform syntax trees.
Expand Down
Binary file added releases/treescript-0.1.0.0.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions src/TreeScript/Misc/Print.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class (Printable a, ReducePrintable a) => LeafPrintable a

-- | A printable annotated tree. All leaves must implement 'LeafPrintable' and be printable in a few formats. Additionally, nodes must support annotations. This class only needs to implement one method, to recursively print in any of these formats, and allow annotations to alter printing.
class (Annotatable a) => TreePrintable a where
-- | Prints the tree
treePrint :: (PrintOut o) -- ^ Type of format of the print. Would require a proxy, but the type can be inferred by the recursive printers.
-- | Prints the tree. @(PrintOut o)@ is the type of format of the print - it would require a proxy, but the type can be inferred by the recursive printers.
treePrint :: (PrintOut o)
=> (forall p. (TreePrintable p) => p an -> o) -- ^ Function to recursively print subtrees (not leaves).
-> (forall l. (LeafPrintable l) => l -> o) -- ^ Function to recursively print leaves.
-> a an
Expand Down
1 change: 0 additions & 1 deletion src/TreeScript/Plugin/Session.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import TreeScript.Misc
import Control.Monad.Logger hiding (LogLevel (..))
import qualified Control.Monad.Logger as L (LogLevel (..))
import Control.Monad.Reader
import Data.Char
import Data.List
import qualified Data.Text as T
import Data.Yaml
Expand Down

0 comments on commit 3968791

Please sign in to comment.