Skip to content

Commit

Permalink
Add a license, Setup.hs, .gitignore and cabal file
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottt committed Nov 29, 2010
1 parent 865da38 commit c79a861
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
*.swp
30 changes: 30 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Copyright (c)2010, Trevor Elliott <trevor@galois.com>

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of Trevor Elliott <trevor@galois.com> nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 2 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain
21 changes: 21 additions & 0 deletions llvm-pretty.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Name: llvm-pretty
Version: 0.1
License: BSD3
License-file: LICENSE
Author: Trevor Elliott <trevor@galois.com>
Category: Text
Build-type: Simple
Cabal-version: >=1.2
Synopsis: A pretty printing library inspired by the llvm binding.
Description:
A pretty printing library that was inspired by the LLVM binding by Lennart
Augustsson. The library provides a monadic interface to a pretty printer,
that allows functions to be defined and called, generating the corresponding
LLVM assemblly when run.

Library
Hs-source-dirs: src
Exposed-modules: Text.LLVM
Build-depends: base >= 4.0.0.0 && < 5.0.0.0,
pretty >= 1.0.1.0 && < 1.1.0.0,
monadLib >= 3.6.1 && < 3.7.0.0

0 comments on commit c79a861

Please sign in to comment.