From 2291a4d49e89f042eaef76874dd395525063e1cd Mon Sep 17 00:00:00 2001 From: Tissevert Date: Sat, 11 Jan 2025 12:13:59 +0100 Subject: [PATCH] Tweaking the source to be able to compile without cabal. Compile with: ghc -iapp -isrc --make app/pandoc.hs -Wall -fno-warn-unused-do-bind -Wincomplete-record-updates -Wnoncanonical-monad-instances -Wcpp-undef -Wincomplete-uni-patterns -Widentities -Wpartial-fields -Wmissing-signatures -fhide-source-paths -Wmissing-export-lists -hide-package base64-bytestring --- src/Paths_pandoc.hs | 11 +++++++++++ src/Text/Pandoc/Readers/Odt/ContentReader.hs | 1 + src/Text/Pandoc/Readers/Odt/Generic/Fallible.hs | 1 + src/Text/Pandoc/Readers/Odt/Generic/XMLConverter.hs | 1 + src/Text/Pandoc/Readers/Odt/StyleReader.hs | 1 + 5 files changed, 15 insertions(+) create mode 100644 src/Paths_pandoc.hs diff --git a/src/Paths_pandoc.hs b/src/Paths_pandoc.hs new file mode 100644 index 000000000..4bb203af3 --- /dev/null +++ b/src/Paths_pandoc.hs @@ -0,0 +1,11 @@ +module Paths_pandoc + ( getDataFileName + , version ) where + +import Data.Version (Version(..)) + +getDataFileName :: String -> IO FilePath +getDataFileName = undefined + +version :: Version +version = Version [2, 19, 2] [] diff --git a/src/Text/Pandoc/Readers/Odt/ContentReader.hs b/src/Text/Pandoc/Readers/Odt/ContentReader.hs index 25573549e..766ae7ca0 100644 --- a/src/Text/Pandoc/Readers/Odt/ContentReader.hs +++ b/src/Text/Pandoc/Readers/Odt/ContentReader.hs @@ -7,6 +7,7 @@ {-# LANGUAGE TupleSections #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE PartialTypeSignatures #-} {- | Module : Text.Pandoc.Readers.Odt.ContentReader Copyright : Copyright (C) 2015 Martin Linnemann diff --git a/src/Text/Pandoc/Readers/Odt/Generic/Fallible.hs b/src/Text/Pandoc/Readers/Odt/Generic/Fallible.hs index 2ec2174a6..913e3c5ba 100644 --- a/src/Text/Pandoc/Readers/Odt/Generic/Fallible.hs +++ b/src/Text/Pandoc/Readers/Odt/Generic/Fallible.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE PartialTypeSignatures #-} {- | Module : Text.Pandoc.Readers.Odt.Generic.Fallible Copyright : Copyright (C) 2015 Martin Linnemann diff --git a/src/Text/Pandoc/Readers/Odt/Generic/XMLConverter.hs b/src/Text/Pandoc/Readers/Odt/Generic/XMLConverter.hs index 6740d44ad..e85a4b677 100644 --- a/src/Text/Pandoc/Readers/Odt/Generic/XMLConverter.hs +++ b/src/Text/Pandoc/Readers/Odt/Generic/XMLConverter.hs @@ -3,6 +3,7 @@ {-# LANGUAGE GADTs #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE PatternGuards #-} +{-# LANGUAGE PartialTypeSignatures #-} {- | Module : Text.Pandoc.Readers.Odt.Generic.XMLConverter Copyright : Copyright (C) 2015 Martin Linnemann diff --git a/src/Text/Pandoc/Readers/Odt/StyleReader.hs b/src/Text/Pandoc/Readers/Odt/StyleReader.hs index 7337194cb..84ba69c9c 100644 --- a/src/Text/Pandoc/Readers/Odt/StyleReader.hs +++ b/src/Text/Pandoc/Readers/Odt/StyleReader.hs @@ -3,6 +3,7 @@ {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TupleSections #-} {-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE PartialTypeSignatures #-} {- | Module : Text.Pandoc.Readers.Odt.StyleReader Copyright : Copyright (C) 2015 Martin Linnemann