Seems to be looking for files in app developer's home directory

Trying a simple example with the Graphics.Rendering.Chart package, I see this error:

** Exception: /Users/chak/Library/Developer/Xcode/DerivedData/GHC-dzygcdsfubpixrdbokgtmpvzbjvk/Build/Intermediates/ArchiveIntermediates/GHC/BuildProductsPath/Release/GHCBuild.bundle/Contents/usr/share/ghc-7.10.2-x86_64/Chart-diagrams-1.5.4/fonts/SourceSansPro_R.svg: openFile: does not exist (No such file or directory)

The app appears to be looking for the original developer's home directory for a file, which doesn't exist on my machine.  The code was pasted from the examples for the library:

import Graphics.Rendering.Chart.Easy
import Graphics.Rendering.Chart.Backend.Diagrams

signal :: [Double] -> [(Double,Double)]
signal xs = [ (x,(sin (x*3.14159/45) + 1) / 2 * (sin (x*3.14159/5)))
| x <- xs ]

main = toFile def "test.png" $ do
layout_title .= "Amplitude Modulation"
plot (line "am" [signal [0,(0.5)..400]])
plot (points "am points" (signal [0,7..400]))

And appears when I run main from the playground.

1 comment

Please sign in to leave a comment.