Skip to content

Commit

Permalink
wip: add to cabal.project
Browse files Browse the repository at this point in the history
  • Loading branch information
duog committed Jan 17, 2022
1 parent c459879 commit 19dbd2a
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cabal.project
Expand Up @@ -26,7 +26,7 @@ packages: ./typed-protocols
./strict-stm
./ntp-client
./cardano-client

./ouroboros-consensus-cardano/tools/txin-delta-timeline-analyser
constraints:
ip < 1.5
, hedgehog >= 1.0
Expand Down
@@ -1,6 +1,6 @@
{-# LANGUAGE OverloadedStrings #-}

module GenesisUTxO (genesisUTxO) where
module TxIn.GenesisUTxO (genesisUTxO) where

import Data.ByteString (ByteString)
import qualified Data.ByteString as BS
Expand All @@ -9,7 +9,7 @@ import qualified Data.ByteString.Short as Short
import Data.Set (Set)
import qualified Data.Set as Set

import Types (TxIn (..))
import TxIn.Types (TxIn (..))

{-------------------------------------------------------------------------------
Genesis UTxO
Expand Down
Expand Up @@ -3,7 +3,7 @@
{-# LANGUAGE NumericUnderscores #-}
{-# LANGUAGE TypeFamilies #-}

module Main (main) where
module TxIn.Main (main) where

import qualified Control.Monad as M
import Data.Bits (shiftL)
Expand All @@ -26,8 +26,8 @@ import qualified Data.Vector as V
import GHC.Clock (getMonotonicTimeNSec)
import qualified Options.Applicative as O

import Types
import GenesisUTxO
import TxIn.Types
import TxIn.GenesisUTxO

main :: IO ()
main = do
Expand Down
@@ -1,4 +1,4 @@
module Types (
module TxIn.Types (
TxIn (..)
, TxOutputIds (..)
, outputTxIns
Expand Down
@@ -0,0 +1,4 @@
{-# language NoImplicitPrelude #-}
module Main(main) where

import TxIn.Main (main)
@@ -0,0 +1,32 @@
cabal-version: >= 1.8
name: txin-delta-timeline-analyser
version: 0.2.0.0
synopsis: X
-- description:
license: Apache-2.0
copyright: 2021 Input Output (Hong Kong) Ltd.
author: X
maintainer:
build-type: Simple


library
hs-source-dirs: .
default-language: Haskell2010
exposed-modules: TxIn.Main
TxIn.Types
TxIn.GenesisUTxO
build-depends: base,
bytestring,
containers,
optparse-applicative,
vector,
text,
text-short,
base64,
base16

executable txin
hs-source-dirs: app
main-is: txin.hs
build-depends: txin-delta-timeline-analyser

0 comments on commit 19dbd2a

Please sign in to comment.