Skip to content

Commit

Permalink
Move currently unused files out of the main directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dougalm committed Nov 23, 2024
1 parent f9cb0dd commit 4237c76
Show file tree
Hide file tree
Showing 42 changed files with 10 additions and 34 deletions.
30 changes: 3 additions & 27 deletions dex.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ flag optimized
description: Enables GHC optimizations
default: False

flag llvm-head
description: Use the bleeding-edge version of LLVM
default: False

flag foreign
description: Build the C interface to Dex
default: False
Expand All @@ -42,52 +38,35 @@ flag debug
library
exposed-modules: AbstractSyntax
-- , Builder
-- , CUDA
-- , CheapReduction
-- , CheckType
, ConcreteSyntax
-- , Core
-- , DPS
, Err
-- , Generalize
-- , Imp
-- , ImpToLLVM
, IncState
, Inference
-- , Inline
-- , JAX.Concrete
-- , JAX.Rename
-- , JAX.ToSimp
-- , LLVM.Link
-- , LLVM.Compile
-- , LLVM.CUDA
-- , LLVM.Shims
, Lexing
-- , Linearize
, MonadUtil
, MTL1
, Name
-- , Occurrence
-- , OccAnalysis
-- , Optimize
-- , PeepholeOptimize
, PPrint
, RawName
-- , Runtime
-- , RuntimePrint
-- , Serialize
-- , Simplify
, Subst
, Subst
, SourceRename
, SourceIdTraversal
, TopLevel2
, TopLevel
-- , Transpose
, Types.Simple
, Types.Complicated
-- , Types.Imp
, Types.Primitives
, Types.Source
, Types.Top2
, Types.Top
-- , QueryType
, QueryTypePure
, Util
Expand All @@ -103,8 +82,6 @@ library
, cryptonite
, exceptions
, hashable
, llvm-hs
, llvm-hs-pure
, mtl
, scientific
, transformers
Expand Down Expand Up @@ -272,7 +249,6 @@ foreign-library Dex
, base
, bytestring
, containers
, llvm-hs
, mtl
, random
, text
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/dex.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import qualified System.Console.ANSI as ANSI
import System.Console.ANSI hiding (Color)

import Types.Source
import TopLevel2
import TopLevel
import ConcreteSyntax (parseSourceBlocks)
import PPrint
import Util (readFileText)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Inference.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import Types.Primitives
import qualified Types.Source as S
import Subst
import Types.Source hiding (ConName (..), TCName (..), CTopDecl)
import Types.Top2
import Types.Top
import Util hiding (group)

-- === Top-level interface ===
Expand Down
2 changes: 1 addition & 1 deletion src/lib/QueryTypePure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module QueryTypePure where
import Types.Primitives
import Types.Simple
import Types.Complicated
import Types.Top2
import Types.Top
import Name

class HasType (e::E) where
Expand Down
2 changes: 1 addition & 1 deletion src/lib/SourceRename.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import MTL1
import PPrint
import Types.Source
import Types.Primitives
import Types.Top2
import Types.Top

renameSourceNames :: (Fallible m, TopLogger m) => UTopDecl -> m UTopDecl
renameSourceNames decl = liftRenamer $ sourceRenameTop decl
Expand Down
4 changes: 2 additions & 2 deletions src/lib/TopLevel2.hs → src/lib/TopLevel.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{-# LANGUAGE UndecidableInstances #-}

module TopLevel2 (
module TopLevel (
EvalConfig (..), TopperM, runTopperM, evalSourceBlockRepl, OptLevel (..),
LibPath (..), initTopState, ExitStatus (..)) where

Expand All @@ -25,7 +25,7 @@ import PPrint
import Types.Complicated
import Types.Primitives
import Types.Source hiding (CTopDecl)
import Types.Top2
import Types.Top

-- === top-level monad ===

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Types/Top2.hs → src/lib/Types/Top.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

-- Top-level data types

module Types.Top2 where
module Types.Top where

import Data.Functor ((<&>))
import Data.Hashable
Expand Down

0 comments on commit 4237c76

Please sign in to comment.