/
Exercise.hs
39 lines (25 loc) · 1.12 KB
/
Exercise.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module Y2017.M01.D25.Exercise where
import System.Directory
{--
Okay, they say 'a' is the second-most popular 'word' in Haskell.
They. Pfft! Well, where will 'they' be when you're in front of your boss
explaining this statement? Where's your stats? Where's the proof?
Let's break down the problem and prove, or disprove, it, eh?
(see what I did there, eh? I said 'eh' IMPLYING that I meant to say 'a')
(geddit? GEDDIT?)
*sigh
Today's Haskell problem. For a given directory, dir, enumerate all the Haskell
files in that directory.
--}
type Directory = FilePath
haskellFiles :: Directory -> IO [FilePath]
haskellFiles dir = undefined
{-- BONUS -----------------------------------------------------------------
For a given directory, dir, enumerate all the Haskell file names for that
directory and all subdirectories of that directory. Make sure you can access
those files, by which I mean: include either the relative path or the full
absolute path to the enumerated files.
--}
haskellFilesR :: Directory -> IO [FilePath]
haskellFilesR dir = undefined
-- So we've got the haskell file names, tomorrow we'll look at file contents