Skip to content

Commit

Permalink
update stack version
Browse files Browse the repository at this point in the history
  • Loading branch information
soupi committed Dec 3, 2021
1 parent 14ecbbc commit 248d1a5
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/dist/
/.cabal-sandbox/
/cabal.sandbox.config
/dist-newstyle/
/.stack-work/
output

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://gitlab.com/gilmi/x86-debug/badges/master/build.svg)](https://gitlab.com/gilmi/x86-debug/commits/master/)

# x86-debug

An emulator/debugger/REPL for a really [small subset](src/Language/X86/Assembly.hs) of x86 assembly.
Expand Down
6 changes: 1 addition & 5 deletions src/Language/X86/Assembly.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ import qualified Data.Sequence as S
import qualified Data.Map as M
import qualified Data.Set as Set





data Code = Code
{ cCode :: S.Seq Line
, cLabelMap :: M.Map Label Int32
Expand Down Expand Up @@ -109,7 +105,7 @@ data Flag
| ZF -- ^ zero flags: Set if result is zero; cleared otherwise
| SF -- ^ sign flag: Set equal to high-order bit of result (0 if positive 1 if negative)
| OF -- ^ overflow flag: Set if result is too large a positive number or too small a negative number (excluding sign bit) to fit in destination operand; cleared otherwise
-- | PF -- ^ parity flag: Set if low-order eight bits of result contain an even number of "1" bits; cleared otherwise
-- | PF -- ^ parity flag: Set if low-order eight bits of result contain an even number of "1" bits; cleared otherwise
deriving (Show, Read, Eq, Ord, Generic, NFData, Data, Typeable)


Expand Down
1 change: 0 additions & 1 deletion src/Language/X86/Lexer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Control.Arrow ((&&&), first)
import Data.Data (showConstr, toConstr, dataTypeConstrs, dataTypeOf)
import Data.Char (toUpper, toLower)
import Data.Functor
import Control.Monad (void)
import Control.Applicative ((<|>))

import Language.X86.Assembly
Expand Down
2 changes: 1 addition & 1 deletion src/Language/X86/PP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

module Language.X86.PP where

import Data.Monoid
import Data.Char (toLower)
import Data.Data
import Data.Foldable as F
Expand Down Expand Up @@ -123,6 +122,7 @@ ppArg :: Arg -> String
ppArg = \case
Ref a -> "[" ++ ppArg a ++ "]"
AE a -> ppAE show a
AEL a -> ppAE show a

-- | Pretty print an argument
ppAE :: (var -> String) -> ArithExpr var -> String
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-13.13
resolver: lts-18.18

packages:
- '.'
Expand Down
12 changes: 12 additions & 0 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages: []
snapshots:
- completed:
size: 586296
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/18.yaml
sha256: 63539429076b7ebbab6daa7656cfb079393bf644971156dc349d7c0453694ac2
original: lts-18.18
18 changes: 8 additions & 10 deletions x86-debug.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ category: Compiler
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.10
tested-with: GHC == 8.6.4

library
hs-source-dirs: src
Expand All @@ -26,15 +25,14 @@ library
, Language.X86.Parser
other-modules:
build-depends:
base
,containers
,vector
,bifunctors
,groom
,syb
,deepseq
,megaparsec
,parser-combinators
base
, containers
, vector
, bifunctors
, groom
, deepseq
, megaparsec
, parser-combinators

default-extensions:
ConstraintKinds
Expand Down

0 comments on commit 248d1a5

Please sign in to comment.