Add -Wno-x-partial GHC option
This commit is contained in:
parent
44166e07ec
commit
3234c7963b
@ -1,4 +1,4 @@
|
||||
import Aoc ( aocMain )
|
||||
import Aoc
|
||||
|
||||
parseFile :: [String] -> [Char]
|
||||
parseFile lines = let [line] = lines in line
|
||||
|
@ -1,3 +1,5 @@
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
import Crypto.Hash.MD5 ( hash )
|
||||
import Data.ByteString.Char8 ( pack )
|
||||
|
@ -1,3 +1,5 @@
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
|
||||
part1 :: [String] -> Int
|
||||
|
@ -1,3 +1,5 @@
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
import Data.List ( group, sort )
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
import Data.Char ( ord, chr )
|
||||
import Data.List ( group, nub )
|
||||
|
@ -1,3 +1,5 @@
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
import Data.Char ( isDigit )
|
||||
import Control.Arrow ( first, second )
|
||||
|
@ -1,3 +1,5 @@
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
import Data.List.Split ( splitOn )
|
||||
import Data.List ( nub )
|
||||
|
@ -1,3 +1,5 @@
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
import Data.List ( transpose )
|
||||
import Data.Bifunctor ( bimap )
|
||||
|
@ -1,6 +1,8 @@
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
import Data.List ( sort, group )
|
||||
import Data.Maybe ( fromMaybe )
|
||||
import Aoc ( aocMain )
|
||||
|
||||
parseFile :: [String] -> ([Int], [Int])
|
||||
parseFile lines = unzip [(a, b) | line <- lines, let [a, b] = map read $ words line]
|
||||
|
@ -1,4 +1,6 @@
|
||||
import Aoc ( aocMain )
|
||||
{-# OPTIONS_GHC -Wno-x-partial #-}
|
||||
|
||||
import Aoc
|
||||
|
||||
parseFile :: [String] -> [[Int]]
|
||||
parseFile = map (map read . words)
|
||||
|
Loading…
Reference in New Issue
Block a user