{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_HADDOCK show-extensions #-}
module ToySolver.Text.CNF {-# DEPRECATED "Use ToySolver.FileFormat.CNF instead" #-}
(
CNF (..)
, parseFile
, parseByteString
, writeFile
, hPutCNF
, cnfBuilder
) where
import Prelude hiding (readFile, writeFile)
import qualified Data.ByteString.Lazy.Char8 as BS
import Data.ByteString.Builder
import System.IO hiding (readFile, writeFile)
import ToySolver.FileFormat.CNF
{-# DEPRECATED parseByteString "Use FileFormat.parse instead" #-}
parseByteString :: BS.ByteString -> Either String CNF
parseByteString :: ByteString -> Either String CNF
parseByteString = ByteString -> Either String CNF
forall a. FileFormat a => ByteString -> Either String a
parse
{-# DEPRECATED cnfBuilder "Use FileFormat.render instead" #-}
cnfBuilder :: CNF -> Builder
cnfBuilder :: CNF -> Builder
cnfBuilder = CNF -> Builder
forall a. FileFormat a => a -> Builder
render
{-# DEPRECATED hPutCNF "Use FileFormat.render instead" #-}
hPutCNF :: Handle -> CNF -> IO ()
hPutCNF :: Handle -> CNF -> IO ()
hPutCNF Handle
h CNF
cnf = Handle -> Builder -> IO ()
hPutBuilder Handle
h (CNF -> Builder
cnfBuilder CNF
cnf)