codec-beam 0.1.0 → 0.1.1
raw patch · 4 files changed
+13/−8 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +7/−4
- codec-beam.cabal +5/−2
- test/.eunit/.gitkeep +0/−0
- test/Eunit.hs +1/−2
README.md view
@@ -14,20 +14,22 @@ This example writes a simple module to a file: ```haskell+{-# LANGUAGE OverloadedStrings #-}+module Main where import qualified Data.ByteString.Lazy as LBS import Codec.Beam.Instructions (func_info, label, move, return') import qualified Codec.Beam as Beam -main : IO ()+main :: IO () main = LBS.writeFile "test_module.beam" $ Beam.encode "test_module" [ Beam.export "tuple_of_one" 0 ]- [ label 1+ [ label (Beam.Label 1) , func_info "tuple_of_one" 0- , label 2+ , label (Beam.Label 2) , move (Beam.Tuple [Beam.Integer 1]) (Beam.X 0) , return' ]@@ -37,7 +39,8 @@ ``` $ erl-1> test_module:tuple_of_one().+1> l(test_module).+2> test_module:tuple_of_one(). {1} ```
codec-beam.cabal view
@@ -1,10 +1,13 @@ Name: codec-beam Category: Language, Codec-Version: 0.1.0+Version: 0.1.1 Maintainer: h.kofigumbs@gmail.com Synopsis: Erlang VM byte code assembler Description: Erlang VM byte code assembler.-Extra-Source-Files: README.md++Extra-Source-Files:+ README.md+ test/.eunit/.gitkeep License: BSD3 License-File: LICENSE
+ test/.eunit/.gitkeep view
test/Eunit.hs view
@@ -27,8 +27,7 @@ -- Create and run an Eunit test file -type Test =- IO String+type Test = IO String test :: String -> [Beam.Metadata] -> [String] -> [Beam.Op] -> Test